Skip to content

Commit 9f41cbc

Browse files
author
chenchaoqun
committed
[format] code style of rt_strcmp function
1 parent e6b7215 commit 9f41cbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/kservice.c

+4-1
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)