From 54aede641824834448737127dae06833d67d54b0 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 19 Jun 2008 17:52:18 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@418 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_proc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index 7f373ae1f..1049cd276 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -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 {