dovecot-2.0: Compiler warning fix on 32bit systems.

dovecot at dovecot.org dovecot at dovecot.org
Mon May 16 15:53:28 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/d9d5759196ee
changeset: 12808:d9d5759196ee
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 16 15:53:13 2011 +0300
description:
Compiler warning fix on 32bit systems.
Patch by Mike Abbott / Apple

diffstat:

 src/director/user-directory.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e76a3313a46c -r d9d5759196ee src/director/user-directory.c
--- a/src/director/user-directory.c	Wed May 11 21:46:56 2011 +0000
+++ b/src/director/user-directory.c	Mon May 16 15:53:13 2011 +0300
@@ -76,12 +76,12 @@
 	user->host->user_count++;
 	user->timestamp = timestamp;
 
-	if (dir->tail == NULL || dir->tail->timestamp <= timestamp)
+	if (dir->tail == NULL || (time_t)dir->tail->timestamp <= timestamp)
 		DLLIST2_APPEND(&dir->head, &dir->tail, user);
 	else {
 		/* need to insert to correct position */
 		for (pos = dir->tail; pos != NULL; pos = pos->prev) {
-			if (pos->timestamp <= timestamp)
+			if ((time_t)pos->timestamp <= timestamp)
 				break;
 		}
 		if (pos == NULL)


More information about the dovecot-cvs mailing list