aboutsummaryrefslogtreecommitdiff
path: root/examples/sgq_dd.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/sgq_dd.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/sgq_dd.c')
-rw-r--r--examples/sgq_dd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/sgq_dd.c b/examples/sgq_dd.c
index b3d82736..4b6bd041 100644
--- a/examples/sgq_dd.c
+++ b/examples/sgq_dd.c
@@ -48,7 +48,7 @@ typedef unsigned char u_char; /* horrible, for scsi.h */
*/
-static char * version_str = "0.58 20151209";
+static char * version_str = "0.59 20160528";
/* resurrected from "0.55 20020509" */
#define DEF_BLOCK_SIZE 512
@@ -285,19 +285,19 @@ static int
read_capacity(int sg_fd, int * num_sect, int * sect_sz)
{
int res;
- unsigned char rcCmdBlk [10] = {0x25, 0, 0, 0, 0, 0, 0, 0, 0, 0};
+ unsigned char rc_cdb [10] = {0x25, 0, 0, 0, 0, 0, 0, 0, 0, 0};
unsigned char rcBuff[64];
unsigned char sense_b[64];
sg_io_hdr_t io_hdr;
memset(&io_hdr, 0, sizeof(sg_io_hdr_t));
io_hdr.interface_id = 'S';
- io_hdr.cmd_len = sizeof(rcCmdBlk);
+ io_hdr.cmd_len = sizeof(rc_cdb);
io_hdr.mx_sb_len = sizeof(sense_b);
io_hdr.dxfer_direction = SG_DXFER_FROM_DEV;
io_hdr.dxfer_len = sizeof(rcBuff);
io_hdr.dxferp = rcBuff;
- io_hdr.cmdp = rcCmdBlk;
+ io_hdr.cmdp = rc_cdb;
io_hdr.sbp = sense_b;
io_hdr.timeout = DEF_TIMEOUT;