diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-15 19:36:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-15 19:36:06 +0000 |
commit | 0ddbcb2ada560e33f79f302c6287305acdc34e62 (patch) | |
tree | 64e71c594c6bbba49f0cb96b3226436d5ee78569 /nuttx/lib | |
parent | cc7a78241f8535fd006a51951ab99b378bf37924 (diff) | |
download | px4-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')
-rw-r--r-- | nuttx/lib/lib_strcasecmp.c | 4 | ||||
-rw-r--r-- | nuttx/lib/lib_strncasecmp.c | 4 |
2 files changed, 4 insertions, 4 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; } 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; } |