]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorKurt Zeilenga <kurt@openldap.org>
Sat, 28 Aug 2004 19:26:59 +0000 (19:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 28 Aug 2004 19:26:59 +0000 (19:26 +0000)
servers/slapd/schema_init.c

index b91d0cfdf9d89799ad6ab9f1f32f2db14aed2762..03672e7fe1a0d7f4560b972819832a166cf660b0 100644 (file)
@@ -2489,8 +2489,7 @@ check_time_syntax (struct berval *val,
        }
 
        /* leapyear check for the Gregorian calendar (year>1581) */
-       if (parts[parts[1] == 0 ? 0 : 1] % 4 == 0)
-       {
+       if (parts[parts[1] == 0 ? 0 : 1] % 4 == 0) {
                leapyear = 1;
        }
 
@@ -2503,16 +2502,17 @@ check_time_syntax (struct berval *val,
                fraction->bv_len = 0;
                if (p < e && (*p == '.' || *p == ',')) {
                        char *end_num;
-                       while (++p < e && ASCII_DIGIT(*p))
-                               ;
+                       while (++p < e && ASCII_DIGIT(*p)) {
+                               /* EMTPY */;
+                       }
                        if (p - fraction->bv_val == 1) {
                                return LDAP_INVALID_SYNTAX;
                        }
-                       for (end_num = p; end_num[-1] == '0'; --end_num)
-                               ;
+                       for (end_num = p; end_num[-1] == '0'; --end_num) {
+                               /* EMPTY */;
+                       }
                        c = end_num - fraction->bv_val;
-                       if (c != 1)
-                               fraction->bv_len = c;
+                       if (c != 1) fraction->bv_len = c;
                }
        }