diff options
Diffstat (limited to 'src/sg_compare_and_write.c')
-rw-r--r-- | src/sg_compare_and_write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_compare_and_write.c b/src/sg_compare_and_write.c index 4a254807..995e150e 100644 --- a/src/sg_compare_and_write.c +++ b/src/sg_compare_and_write.c @@ -54,7 +54,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "1.20 20180123"; +static const char * version_str = "1.21 20180210"; #define DEF_BLOCK_SIZE 512 #define DEF_NUM_BLOCKS (1) @@ -374,7 +374,7 @@ sg_ll_compare_and_write(int sg_fd, unsigned char * buff, int blocks, SG_NO_DATA_IN, sense_b, noisy, verbose, &sense_cat); if (-1 == ret) - ; + ret = sg_convert_errno(get_scsi_pt_os_err(ptvp)); else if (-2 == ret) { switch (sense_cat) { case SG_LIB_CAT_RECOVERED: |