Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37908228
en ru br
Репозитории ALT
S:7.2-alt1
5.1: 5.39.1-alt1
4.1: 5.38-alt1
4.0: 5.38-alt1
3.0: 5.32-alt1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: smartmontools

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: smartmontools-5.38-alt-cciss-warnings.patch
Скачать


--- 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)
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin