dovecot-2.0: Compiler warning fixes.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 20 01:19:46 EET 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/2789f87b6828
changeset: 10376:2789f87b6828
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 19 18:19:32 2009 -0500
description:
Compiler warning fixes.
diffstat:
1 file changed, 2 insertions(+), 8 deletions(-)
src/lib-settings/settings-parser.c | 10 ++--------
diffs (37 lines):
diff -r b21b3b373c74 -r 2789f87b6828 src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c Thu Nov 19 18:18:31 2009 -0500
+++ b/src/lib-settings/settings-parser.c Thu Nov 19 18:19:32 2009 -0500
@@ -313,15 +313,12 @@ get_time(struct setting_parser_context *
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 @@ get_size(struct setting_parser_context *
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;
More information about the dovecot-cvs
mailing list