summaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-05 14:46:35 +0000
committerTom Rini <trini@ti.com>2012-12-11 13:17:34 -0700
commitb1f17bf5ff63a7e22e0299dd576c3b6cd38ae665 (patch)
treef96ee90f06bef6e031832cded766631486a88e76 /arch/sparc
parentec7381fbf6f77cc465eb06a1ab6f8a99df1e487c (diff)
downloadu-boot-b1f17bf5ff63a7e22e0299dd576c3b6cd38ae665.tar.gz
u-boot-b1f17bf5ff63a7e22e0299dd576c3b6cd38ae665.tar.bz2
u-boot-b1f17bf5ff63a7e22e0299dd576c3b6cd38ae665.zip
Add strcasecmp() and strncasecmp()
strncasecmp() is present as strnicmp() but disabled. Make it available and define strcasecmp() also. There is a only a small performance penalty to having strcasecmp() call strncasecmp(), so do this instead of a standalone function, to save code space. Update the prototype in arch-specific headers as needed to avoid warnings. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/string.h b/arch/sparc/include/asm/string.h
index c6bbc203d5..af6faea234 100644
--- a/arch/sparc/include/asm/string.h
+++ b/arch/sparc/include/asm/string.h
@@ -40,7 +40,7 @@
*/
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 *);