summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_strcasecmp.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_strcasecmp.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_strcasecmp.c')
-rw-r--r--nuttx/lib/lib_strcasecmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/lib/lib_strcasecmp.c b/nuttx/lib/lib_strcasecmp.c
index 425a3e639..d9c5e5636 100644
--- a/nuttx/lib/lib_strcasecmp.c
+++ b/nuttx/lib/lib_strcasecmp.c
@@ -54,10 +54,10 @@
#ifndef CONFIG_ARCH_STRCMP
int strcasecmp(const char *cs, const char *ct)
{
- register signed char result;
+ register int result;
for (;;)
{
- if ((result = toupper(*cs) - toupper(*ct)) != 0 || !*cs)
+ if ((result = (int)toupper(*cs) - (int)toupper(*ct)) != 0 || !*cs)
{
break;
}