]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fixes
authorTimo Sirainen <tss@iki.fi>
Wed, 29 Oct 2008 22:31:52 +0000 (00:31 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 29 Oct 2008 22:31:52 +0000 (00:31 +0200)
--HG--
branch : HEAD

src/auth/db-checkpassword.c
src/lib-dict/dict-file.c
src/lib-storage/mailbox-uidvalidity.c

index e58ee4c21cd9f122074aede711a78c860d376f7b..7256d0585fb10ded6aa7d398026235c4529f9366 100644 (file)
@@ -60,7 +60,8 @@ checkpassword_sigchld_handler(const struct child_wait_status *child_wait_status,
        pid_t pid = child_wait_status->pid;
 
        if (request == NULL) {
-               i_error("checkpassword: sighandler called for unknown child %d", pid);
+               i_error("checkpassword: sighandler called for unknown child %s",
+                       dec2str(pid));
                return SIGCHLD_RESULT_UNKNOWN_CHILD;
        }
 
index 453ee8bad1b8a7a6cb0a1ed09da70d5963e9863b..78ca849156fb7f6d54f676a981a79159ab7a9359 100644 (file)
@@ -192,7 +192,7 @@ static int file_dict_iterate(struct dict_iterate_context *_ctx,
                        continue;
 
                if ((ctx->flags & DICT_ITERATE_FLAG_RECURSE) == 0 &&
-                   strchr(key + ctx->path_len, '/') != NULL)
+                   strchr((char *)key + ctx->path_len, '/') != NULL)
                        continue;
 
                *key_r = key;
index bc10f3cca13aec03ceec11ae02dd4bc57bffefae..de31df357d3317f38e45ffac15119fadd17ada00 100644 (file)
@@ -22,8 +22,8 @@ static uint32_t mailbox_uidvalidity_next_fallback(void)
        /* we failed to use the uidvalidity file. don't fail the mailbox
           creation because of it though, most of the time it's safe enough
           to use the current time as the uidvalidity value. */
-       if (uid_validity < ioloop_time)
-               uid_validity = ioloop_time;
+       if (uid_validity < (uint32_t)ioloop_time)
+               uid_validity = (uint32_t)ioloop_time;
        else
                uid_validity++;
        return uid_validity;