From: Timo Sirainen Date: Wed, 29 Oct 2008 22:31:52 +0000 (+0200) Subject: Compiler warning fixes X-Git-Tag: 1.2.alpha4~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e881a691e6d2d2836d923ef3e92b14aeda60f0d;p=thirdparty%2Fdovecot%2Fcore.git Compiler warning fixes --HG-- branch : HEAD --- diff --git a/src/auth/db-checkpassword.c b/src/auth/db-checkpassword.c index e58ee4c21c..7256d0585f 100644 --- a/src/auth/db-checkpassword.c +++ b/src/auth/db-checkpassword.c @@ -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; } diff --git a/src/lib-dict/dict-file.c b/src/lib-dict/dict-file.c index 453ee8bad1..78ca849156 100644 --- a/src/lib-dict/dict-file.c +++ b/src/lib-dict/dict-file.c @@ -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; diff --git a/src/lib-storage/mailbox-uidvalidity.c b/src/lib-storage/mailbox-uidvalidity.c index bc10f3cca1..de31df357d 100644 --- a/src/lib-storage/mailbox-uidvalidity.c +++ b/src/lib-storage/mailbox-uidvalidity.c @@ -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;