summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_strncasecmp.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-08-15 19:36:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-08-15 19:36:06 +0000
commit0ddbcb2ada560e33f79f302c6287305acdc34e62 (patch)
tree64e71c594c6bbba49f0cb96b3226436d5ee78569 /nuttx/lib/lib_strncasecmp.c
parentcc7a78241f8535fd006a51951ab99b378bf37924 (diff)
downloadpx4-nuttx-0ddbcb2ada560e33f79f302c6287305acdc34e62.tar.gz
px4-nuttx-0ddbcb2ada560e33f79f302c6287305acdc34e62.tar.bz2
px4-nuttx-0ddbcb2ada560e33f79f302c6287305acdc34e62.zip
THTTPD progress
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2020 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_strncasecmp.c')
-rw-r--r--nuttx/lib/lib_strncasecmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/lib/lib_strncasecmp.c b/nuttx/lib/lib_strncasecmp.c
index 5b35bfff1..c34396a50 100644
--- a/nuttx/lib/lib_strncasecmp.c
+++ b/nuttx/lib/lib_strncasecmp.c
@@ -54,10 +54,10 @@
#ifndef CONFIG_ARCH_STRNCASECMP
int strncasecmp(const char *cs, const char *ct, size_t nb)
{
- register signed char result = 0;
+ register int result = 0;
for (; nb > 0; nb--)
{
- if ((result = toupper(*cs) - toupper(*ct)) != 0 || !*cs)
+ if ((result = (int)toupper(*cs) - (int)toupper(*ct)) != 0 || !*cs)
{
break;
}