From fea393c077bf3bcacf8bcdf4b70c28ec3e4be66f Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 28 Aug 2004 19:26:59 +0000 Subject: [PATCH] cleanup --- servers/slapd/schema_init.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index b91d0cfdf9..03672e7fe1 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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; } } -- 2.39.5