]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fixes.
authorTimo Sirainen <tss@iki.fi>
Thu, 19 Nov 2009 23:19:32 +0000 (18:19 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 19 Nov 2009 23:19:32 +0000 (18:19 -0500)
--HG--
branch : HEAD

src/lib-settings/settings-parser.c

index 39dc76b8949bc68e72f5ccd9374e56f0e8fd6d95..7cab6eec53e07a625fd4aa161aa29dae99a16341 100644 (file)
@@ -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;