Browse Source

[format] code style of rt_strcmp function

chenchaoqun 5 years ago
parent
commit
9f41cbced8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/kservice.c

+ 4 - 1
src/kservice.c

@@ -456,7 +456,10 @@ RTM_EXPORT(rt_strncmp);
 rt_int32_t rt_strcmp(const char *cs, const char *ct)
 rt_int32_t rt_strcmp(const char *cs, const char *ct)
 {
 {
     while (*cs && *cs == *ct)
     while (*cs && *cs == *ct)
-        cs++, ct++;
+    {        
+        cs++;
+        ct++;
+    }
 
 
     return (*cs - *ct);
     return (*cs - *ct);
 }
 }