Group :: Monitoramento
RPM: smartmontools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: smartmontools-5.38-alt-cciss-warnings.patch
Download
Download
--- smartmontools-5.38/cciss.cpp.alt-warnings 2008-03-15 20:10:45 +0300
+++ smartmontools-5.38/cciss.cpp 2008-03-15 20:15:37 +0300
@@ -177,7 +177,6 @@ static int cciss_getlun(int device, int
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 +208,7 @@ static int cciss_getlun(int device, int
pout("%02x ",*stuff++);
pout("%02x\n",*stuff++);
}
- pout("===== [%s] DATA END (%d Bytes) =====\n\n", "LUN DATA", sizeof(_ReportLUNdata_struct));
+ pout("===== [%s] DATA END (%lu Bytes) =====\n\n", "LUN DATA", (unsigned long)sizeof(_ReportLUNdata_struct));
}
if (target >= 0 && target < (int) be32toh(luns->LUNListLength) / 8)