Skip to content

Commit d0ebdc5

Browse files
author
lihui
committed
fix return type error of rt_strcasecmp: rt_uint32_t to rt_int32_t
Signed-off-by: lihui <[email protected]>
1 parent 5ddb0d5 commit d0ebdc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/rtthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ rt_int32_t rt_sscanf(const char *buf, const char *fmt, ...);
554554
char *rt_strncpy(char *dest, const char *src, rt_ubase_t n);
555555
void *rt_memmove(void *dest, const void *src, rt_ubase_t n);
556556
rt_int32_t rt_memcmp(const void *cs, const void *ct, rt_ubase_t count);
557-
rt_uint32_t rt_strcasecmp(const char *a, const char *b);
557+
rt_int32_t rt_strcasecmp(const char *a, const char *b);
558558

559559
void rt_show_version(void);
560560

src/kservice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ RTM_EXPORT(rt_strstr);
370370
*
371371
* @return the result
372372
*/
373-
rt_uint32_t rt_strcasecmp(const char *a, const char *b)
373+
rt_int32_t rt_strcasecmp(const char *a, const char *b)
374374
{
375375
int ca, cb;
376376

0 commit comments

Comments
 (0)