]> git.pld-linux.org Git - packages/cciss_vol_status.git/commitdiff
- fix compile error:
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Oct 2009 06:41:03 +0000 (06:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  cciss_vol_status.c:991: error: too few arguments to function 'strnlen'

Changed files:
    strnlen.patch -> 1.1

strnlen.patch [new file with mode: 0644]

diff --git a/strnlen.patch b/strnlen.patch
new file mode 100644 (file)
index 0000000..2ded3b4
--- /dev/null
@@ -0,0 +1,11 @@
+--- cciss_vol_status-1.04/cciss_vol_status.c~  2009-09-21 18:12:23.000000000 +0300
++++ cciss_vol_status-1.04/cciss_vol_status.c   2009-10-13 09:39:20.227199332 +0300
+@@ -988,7 +988,7 @@
+       if (status < 0) 
+               return 0;
+       for (i = 0; i < (sizeof(hpsa_prod) / sizeof(hpsa_prod[0])); i++) {
+-              if (strncmp(std_inq+8, hpsa_prod[i], strnlen(hpsa_prod[i])) == 0)
++              if (strncmp(std_inq+8, hpsa_prod[i], strlen(hpsa_prod[i])) == 0)
+                       return 1;
+       }
+       return 0;
This page took 0.086491 seconds and 4 git commands to generate.