diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 12:41:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 12:41:40 -0500 |
commit | 3cbb90a9cb7854b1110663919d5bc3da3f46d5e3 (patch) | |
tree | b7bf16e3e9b44dfaa7d5bff3c612a6ab72bd7169 | |
parent | 1b9a3917366028cc451a98dd22e3bcd537d4e5c1 (diff) |
powerpc: fix strncasecmp prototype
It takes a size_t, not an int, as its third argument.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/powerpc/lib/strcase.c | 4 | ||||
-rw-r--r-- | include/asm-powerpc/string.h | 2 |
2 files changed, 4 insertions, 2 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 @@ | |||
1 | #include <linux/types.h> | ||
1 | #include <linux/ctype.h> | 2 | #include <linux/ctype.h> |
3 | #include <linux/string.h> | ||
2 | 4 | ||
3 | int strcasecmp(const char *s1, const char *s2) | 5 | int strcasecmp(const char *s1, const char *s2) |
4 | { | 6 | { |
@@ -11,7 +13,7 @@ int strcasecmp(const char *s1, const char *s2) | |||
11 | return c1 - c2; | 13 | return c1 - c2; |
12 | } | 14 | } |
13 | 15 | ||
14 | int strncasecmp(const char *s1, const char *s2, int n) | 16 | int strncasecmp(const char *s1, const char *s2, size_t n) |
15 | { | 17 | { |
16 | int c1, c2; | 18 | int c1, c2; |
17 | 19 | ||
diff --git a/include/asm-powerpc/string.h b/include/asm-powerpc/string.h index 8606a696c088..faa407f33c6b 100644 --- a/include/asm-powerpc/string.h +++ b/include/asm-powerpc/string.h | |||
@@ -15,7 +15,7 @@ | |||
15 | #define __HAVE_ARCH_MEMCHR | 15 | #define __HAVE_ARCH_MEMCHR |
16 | 16 | ||
17 | extern int strcasecmp(const char *, const char *); | 17 | extern int strcasecmp(const char *, const char *); |
18 | extern int strncasecmp(const char *, const char *, int); | 18 | extern int strncasecmp(const char *, const char *, __kernel_size_t); |
19 | extern char * strcpy(char *,const char *); | 19 | extern char * strcpy(char *,const char *); |
20 | extern char * strncpy(char *,const char *, __kernel_size_t); | 20 | extern char * strncpy(char *,const char *, __kernel_size_t); |
21 | extern __kernel_size_t strlen(const char *); | 21 | extern __kernel_size_t strlen(const char *); |