From: Timo Sirainen Date: Thu, 19 Nov 2009 23:19:32 +0000 (-0500) Subject: Compiler warning fixes. X-Git-Tag: 2.0.beta1~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b68d82ee3f2a56db587f9251e734e50888f2d32e;p=thirdparty%2Fdovecot%2Fcore.git Compiler warning fixes. --HG-- branch : HEAD --- diff --git a/src/lib-settings/settings-parser.c b/src/lib-settings/settings-parser.c index 39dc76b894..7cab6eec53 100644 --- a/src/lib-settings/settings-parser.c +++ b/src/lib-settings/settings-parser.c @@ -313,15 +313,12 @@ static int get_time(struct setting_parser_context *ctx, const char *value, unsigned int *result_r) { - unsigned int num, multiply; + unsigned int num, multiply = 1; char *p; num = strtoull(value, &p, 10); while (*p == ' ') p++; switch (i_toupper(*p)) { - case '\0': - multiply = 1; - break; case 'S': multiply = 1; if (strncasecmp(p, "secs", strlen(p)) == 0) @@ -369,15 +366,12 @@ static int get_size(struct setting_parser_context *ctx, const char *value, uoff_t *result_r) { - unsigned long long num, multiply; + unsigned long long num, multiply = 1; char *p; num = strtoull(value, &p, 10); while (*p == ' ') p++; switch (i_toupper(*p)) { - case '\0': - multiply = 1; - break; case 'B': multiply = 1; p += 1;