diff options
Diffstat (limited to 'src/sg_compare_and_write.c')
-rw-r--r-- | src/sg_compare_and_write.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/sg_compare_and_write.c b/src/sg_compare_and_write.c index c9734bb7..b13d5220 100644 --- a/src/sg_compare_and_write.c +++ b/src/sg_compare_and_write.c @@ -48,7 +48,7 @@ * */ -static const char * version_str = "1.02 20130117"; +static const char * version_str = "1.03 20130507"; #define DEF_BLOCK_SIZE 512 #define DEF_NUM_BLOCKS (1) @@ -79,6 +79,14 @@ static struct option long_options[] = { {0, 0, 0, 0}, }; +struct caw_flags { + int dpo; + int fua; + int fua_nv; + int group; + int wrprotect; +}; + struct opts_t { char ifilename[256]; uint64_t lba; @@ -87,13 +95,7 @@ struct opts_t { int timeout; int xfer_len; const char * device_name; - struct caw_flags { - int dpo; - int fua; - int fua_nv; - int group; - int wrprotect; - } flags; + struct caw_flags flags; } opts; static void |