Skip to content

Commit 18d1683

Browse files
authored
Merge pull request RT-Thread#3777 from ErnestChen1/strcmp0727
[format] code style of rt_strcmp function
2 parents 40b69ae + 9f41cbc commit 18d1683

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/kservice.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,10 @@ RTM_EXPORT(rt_strncmp);
456456
rt_int32_t rt_strcmp(const char *cs, const char *ct)
457457
{
458458
while (*cs && *cs == *ct)
459-
cs++, ct++;
459+
{
460+
cs++;
461+
ct++;
462+
}
460463

461464
return (*cs - *ct);
462465
}

0 commit comments

Comments
 (0)