mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user