summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 18:41:40 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 18:41:40 +0100
commit3cbb90a9cb7854b1110663919d5bc3da3f46d5e3 (patch)
treeb7bf16e3e9b44dfaa7d5bff3c612a6ab72bd7169 /arch
parentMerge branch 'audit.b3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro... (diff)
downloadlinux-3cbb90a9cb7854b1110663919d5bc3da3f46d5e3.tar.xz
linux-3cbb90a9cb7854b1110663919d5bc3da3f46d5e3.zip
powerpc: fix strncasecmp prototype
It takes a size_t, not an int, as its third argument. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/lib/strcase.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/lib/strcase.c b/arch/powerpc/lib/strcase.c
index 36b521091bbc..f8ec1eba3fdd 100644
--- a/arch/powerpc/lib/strcase.c
+++ b/arch/powerpc/lib/strcase.c
@@ -1,4 +1,6 @@
+#include <linux/types.h>
#include <linux/ctype.h>
+#include <linux/string.h>
int strcasecmp(const char *s1, const char *s2)
{
@@ -11,7 +13,7 @@ int strcasecmp(const char *s1, const char *s2)
return c1 - c2;
}
-int strncasecmp(const char *s1, const char *s2, int n)
+int strncasecmp(const char *s1, const char *s2, size_t n)
{
int c1, c2;