aboutsummaryrefslogtreecommitdiff
path: root/src/sg_sat_phy_event.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-10-13 02:04:33 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-10-13 02:04:33 +0000
commit23712b6e6d5ee067cf7a740ef10e4dbea90dd179 (patch)
treec323728be100cf78adade4d95987826a5819fc7a /src/sg_sat_phy_event.c
parent2715125260da177d9869321027ef22a9f49fde1b (diff)
downloadsg3_utils-23712b6e6d5ee067cf7a740ef10e4dbea90dd179.tar.gz
further two valued ints converted to bool
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@721 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_sat_phy_event.c')
-rw-r--r--src/sg_sat_phy_event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_sat_phy_event.c b/src/sg_sat_phy_event.c
index 1b7eb912..ae59a006 100644
--- a/src/sg_sat_phy_event.c
+++ b/src/sg_sat_phy_event.c
@@ -24,7 +24,7 @@
#include "sg_cmds_extra.h"
#include "sg_pr2serr.h"
-static const char * version_str = "1.08 20171007";
+static const char * version_str = "1.09 20171010";
/* This program uses a ATA PASS-THROUGH SCSI command. This usage is
* defined in the SCSI to ATA Translation (SAT) drafts and standards.
@@ -266,7 +266,7 @@ do_read_log_ext(int sg_fd, int log_addr, bool page_in_log, int feature,
"Descriptor\n");
return SG_LIB_CAT_RECOVERED;
}
- got_ard = 1;
+ got_ard = true;
break;
} else if (SPC_SK_RECOVERED_ERROR == ssh.sense_key)
return SG_LIB_CAT_RECOVERED;
@@ -333,7 +333,7 @@ do_read_log_ext(int sg_fd, int log_addr, bool page_in_log, int feature,
return -1;
}
- if ((SAT_ATA_RETURN_DESC == ata_return_desc[0]) && (0 == got_ard))
+ if ((SAT_ATA_RETURN_DESC == ata_return_desc[0]) && (! got_ard))
pr2serr("Seem to have got ATA Result Descriptor but it was not "
"indicated\n");
if (got_ard) {