aboutsummaryrefslogtreecommitdiff
path: root/src/sg_rtpg.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2011-10-14 22:41:40 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2011-10-14 22:41:40 +0000
commite98e6eb14f6d8ba2c623b5eea17930f0e70f8d8b (patch)
treeb21a3080dce8385da9c10151ee3a52ce4ac1d700 /src/sg_rtpg.c
parent1344b066568469c82d02f566df708bc077605c94 (diff)
downloadsg3_utils-e98e6eb14f6d8ba2c623b5eea17930f0e70f8d8b.tar.gz
gcc 4.6 cleanup
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@419 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_rtpg.c')
-rw-r--r--src/sg_rtpg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sg_rtpg.c b/src/sg_rtpg.c
index 471bc292..d0d14039 100644
--- a/src/sg_rtpg.c
+++ b/src/sg_rtpg.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004-2010 Christophe Varoqui and Douglas Gilbert.
+ * Copyright (c) 2004-2011 Christophe Varoqui and Douglas Gilbert.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
@@ -26,7 +26,7 @@
* to the given SCSI device.
*/
-static char * version_str = "1.14 20100312";
+static char * version_str = "1.15 20111014";
#define REPORT_TGT_GRP_BUFF_LEN 1024
@@ -151,7 +151,7 @@ static void decode_tpgs_state(const int st)
int main(int argc, char * argv[])
{
- int sg_fd, k, j, off, res, c, report_len, tgt_port_count, trunc;
+ int sg_fd, k, j, off, res, c, report_len, tgt_port_count;
unsigned char reportTgtGrpBuff[REPORT_TGT_GRP_BUFF_LEN];
unsigned char * ucp;
int decode = 0;
@@ -229,7 +229,7 @@ int main(int argc, char * argv[])
}
memset(reportTgtGrpBuff, 0x0, sizeof(reportTgtGrpBuff));
- trunc = 0;
+ /* trunc = 0; */
#ifndef TEST_CODE
res = sg_ll_report_tgt_prt_grp(sg_fd, reportTgtGrpBuff,
@@ -245,7 +245,7 @@ int main(int argc, char * argv[])
(reportTgtGrpBuff[2] << 8) +
reportTgtGrpBuff[3] + 4;
if (report_len > (int)sizeof(reportTgtGrpBuff)) {
- trunc = 1;
+ /* trunc = 1; */
fprintf(stderr, " <<report too long for internal buffer,"
" output truncated\n");
report_len = (int)sizeof(reportTgtGrpBuff);