aboutsummaryrefslogtreecommitdiff
path: root/examples/sg_simple5.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2016-05-28 20:14:47 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2016-05-28 20:14:47 +0000
commit2eb082b82dc3bb4413205a7a0994dae34ecd5db0 (patch)
treeca489ea53d4ff1a5690ca4357acfca8cd697f84b /examples/sg_simple5.c
parenteb96c6181e4436199a942054891420a07969f885 (diff)
downloadsg3_utils-2eb082b82dc3bb4413205a7a0994dae34ecd5db0.tar.gz
cdb naming clean up
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@709 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'examples/sg_simple5.c')
-rw-r--r--examples/sg_simple5.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/sg_simple5.c b/examples/sg_simple5.c
index 3a09d8f7..0471bec8 100644
--- a/examples/sg_simple5.c
+++ b/examples/sg_simple5.c
@@ -19,7 +19,7 @@
Invocation: sg_simple5 [-x] <scsi_device>
- Version 1.01 (20070331)
+ Version 1.02 (20160528)
*/
@@ -33,9 +33,9 @@
int main(int argc, char * argv[])
{
int sg_fd, k, ok, dsize, res, duration, resid, cat, got, slen;
- unsigned char inqCmdBlk [INQ_CMD_LEN] =
+ unsigned char inq_cdb [INQ_CMD_LEN] =
{0x12, 0, 0, 0, INQ_REPLY_LEN, 0};
- unsigned char turCmdBlk [TUR_CMD_LEN] =
+ unsigned char tur_cdb [TUR_CMD_LEN] =
{0x00, 0, 0, 0, 0, 0};
unsigned char inqBuff[INQ_REPLY_LEN];
char * file_name = 0;
@@ -85,7 +85,7 @@ int main(int argc, char * argv[])
fprintf(stderr, "sg_simple5: out of memory\n");
return -1;
}
- set_scsi_pt_cdb(ptvp, inqCmdBlk, sizeof(inqCmdBlk));
+ set_scsi_pt_cdb(ptvp, inq_cdb, sizeof(inq_cdb));
set_scsi_pt_sense(ptvp, sense_b, sizeof(sense_b));
set_scsi_pt_data_in(ptvp, inqBuff, dsize);
res = do_scsi_pt(ptvp, sg_fd, CMD_TIMEOUT_SECS, verbose);
@@ -168,7 +168,7 @@ finish_inq:
fprintf(stderr, "sg_simple5: out of memory\n");
return -1;
}
- set_scsi_pt_cdb(ptvp, turCmdBlk, sizeof(turCmdBlk));
+ set_scsi_pt_cdb(ptvp, tur_cdb, sizeof(tur_cdb));
set_scsi_pt_sense(ptvp, sense_b, sizeof(sense_b));
/* no data in or out */
res = do_scsi_pt(ptvp, sg_fd, CMD_TIMEOUT_SECS, verbose);