dovecot-1.2: Compiler warning fixes

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 30 00:31:55 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/54ff30d93cab
changeset: 8359:54ff30d93cab
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 30 00:31:52 2008 +0200
description:
Compiler warning fixes

diffstat:

3 files changed, 5 insertions(+), 4 deletions(-)
src/auth/db-checkpassword.c           |    3 ++-
src/lib-dict/dict-file.c              |    2 +-
src/lib-storage/mailbox-uidvalidity.c |    4 ++--

diffs (39 lines):

diff -r 35e770620a2b -r 54ff30d93cab src/auth/db-checkpassword.c
--- a/src/auth/db-checkpassword.c	Thu Oct 30 00:00:12 2008 +0200
+++ b/src/auth/db-checkpassword.c	Thu Oct 30 00:31:52 2008 +0200
@@ -60,7 +60,8 @@ checkpassword_sigchld_handler(const stru
 	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 -r 35e770620a2b -r 54ff30d93cab src/lib-dict/dict-file.c
--- a/src/lib-dict/dict-file.c	Thu Oct 30 00:00:12 2008 +0200
+++ b/src/lib-dict/dict-file.c	Thu Oct 30 00:31:52 2008 +0200
@@ -192,7 +192,7 @@ static int file_dict_iterate(struct dict
 			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 -r 35e770620a2b -r 54ff30d93cab src/lib-storage/mailbox-uidvalidity.c
--- a/src/lib-storage/mailbox-uidvalidity.c	Thu Oct 30 00:00:12 2008 +0200
+++ b/src/lib-storage/mailbox-uidvalidity.c	Thu Oct 30 00:31:52 2008 +0200
@@ -22,8 +22,8 @@ static uint32_t mailbox_uidvalidity_next
 	/* 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;


More information about the dovecot-cvs mailing list