Fix compilation warning in kernels higher than 2.6.16

(the prototype of the function strncasecmp was changed in 2.6.16).

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@418 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-06-19 17:52:18 +00:00
parent 5f2d7fddea
commit 54aede6418
+4
View File
@@ -186,7 +186,11 @@ static int strcasecmp(const char *s1, const char *s2)
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 17)
static int strncasecmp(const char *s1, const char *s2, int n)
#else
static int strncasecmp(const char *s1, const char *s2, size_t n)
#endif
{
int c1, c2;
do {