aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/strcase.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/lib/strcase.c')
-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 36b521091bb..f8ec1eba3fd 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;