]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - cciss.cpp
Imported Upstream version 5.38+svn2879
[mirror_smartmontools-debian.git] / cciss.cpp
index d425f8e1a73b0c7e03d286355d250788a269c89f..3c32585659d3eb67b703694b2317f5872590b4e3 100644 (file)
--- a/cciss.cpp
+++ b/cciss.cpp
@@ -26,6 +26,9 @@
 #include "scsicmds.h"
 #include "utility.h"
 
+const char *cciss_c_cvsid="$Id: cciss.cpp,v 1.9 2008/07/30 20:42:53 chrfranke Exp $"
+CONFIG_H_CVSID INT64_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID;
+
 typedef struct _ReportLUNdata_struct
 {
   uint32_t LUNListLength;      /* always big-endian */
@@ -177,7 +180,6 @@ static int cciss_getlun(int device, int target, unsigned char *physlun, int repo
     unsigned char CDB[16]= {0};
     ReportLunData_struct *luns;
     int reportlunsize = sizeof(*luns) + CISS_MAX_PHYS_LUN * 8;
-    int i;
     int ret;
 
     luns = (ReportLunData_struct *)malloc(reportlunsize);
@@ -209,7 +211,7 @@ static int cciss_getlun(int device, int target, unsigned char *physlun, int repo
          pout("%02x ",*stuff++);
        pout("%02x\n",*stuff++);
       }
-      pout("===== [%s] DATA END (%d Bytes) =====\n\n", "LUN DATA", sizeof(_ReportLUNdata_struct));
+      pout("===== [%s] DATA END (%u Bytes) =====\n\n", "LUN DATA", (unsigned)sizeof(_ReportLUNdata_struct));
     }
 
     if (target >= 0 && target < (int) be32toh(luns->LUNListLength) / 8)