Merge pull request #3480 from leeehui/master

fix return type error of rt_strcasecmp: rt_uint32_t to rt_int32_t
This commit is contained in:
Bernard Xiong 2020-03-26 13:56:23 +08:00 committed by GitHub
commit 130550d5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -554,7 +554,7 @@ rt_int32_t rt_sscanf(const char *buf, const char *fmt, ...);
char *rt_strncpy(char *dest, const char *src, rt_ubase_t n); char *rt_strncpy(char *dest, const char *src, rt_ubase_t n);
void *rt_memmove(void *dest, const void *src, rt_ubase_t n); void *rt_memmove(void *dest, const void *src, rt_ubase_t n);
rt_int32_t rt_memcmp(const void *cs, const void *ct, rt_ubase_t count); rt_int32_t rt_memcmp(const void *cs, const void *ct, rt_ubase_t count);
rt_uint32_t rt_strcasecmp(const char *a, const char *b); rt_int32_t rt_strcasecmp(const char *a, const char *b);
void rt_show_version(void); void rt_show_version(void);

View File

@ -370,7 +370,7 @@ RTM_EXPORT(rt_strstr);
* *
* @return the result * @return the result
*/ */
rt_uint32_t rt_strcasecmp(const char *a, const char *b) rt_int32_t rt_strcasecmp(const char *a, const char *b)
{ {
int ca, cb; int ca, cb;