Skip to content

Commit

Permalink
powerpc: fix strncasecmp prototype
Browse files Browse the repository at this point in the history
It takes a size_t, not an int, as its third argument.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Linus Torvalds committed Mar 25, 2006
1 parent 1b9a391 commit 3cbb90a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion arch/powerpc/lib/strcase.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/string.h>

int strcasecmp(const char *s1, const char *s2)
{
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion include/asm-powerpc/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define __HAVE_ARCH_MEMCHR

extern int strcasecmp(const char *, const char *);
extern int strncasecmp(const char *, const char *, int);
extern int strncasecmp(const char *, const char *, __kernel_size_t);
extern char * strcpy(char *,const char *);
extern char * strncpy(char *,const char *, __kernel_size_t);
extern __kernel_size_t strlen(const char *);
Expand Down

0 comments on commit 3cbb90a

Please sign in to comment.