dovecot-2.1: Compiler warning fixes.

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 1 06:58:15 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.1/rev/4b80f6be7ff8
changeset: 15003:4b80f6be7ff8
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 01 06:57:54 2013 +0300
description:
Compiler warning fixes.

diffstat:

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

diffs (30 lines):

diff -r 49258067fcfb -r 4b80f6be7ff8 src/director/user-directory.c
--- a/src/director/user-directory.c	Mon Sep 30 06:40:50 2013 +0300
+++ b/src/director/user-directory.c	Tue Oct 01 06:57:54 2013 +0300
@@ -110,7 +110,7 @@
 				struct user *pos, struct user *user)
 {
 	for (; pos != NULL; pos = pos->prev) {
-		if ((time_t)pos->timestamp <= user->timestamp)
+		if (pos->timestamp <= user->timestamp)
 			break;
 	}
 	if (pos == NULL)
@@ -131,7 +131,7 @@
 			       struct user *pos, struct user *user)
 {
 	for (; pos != NULL; pos = pos->next) {
-		if ((time_t)pos->timestamp >= user->timestamp)
+		if (pos->timestamp >= user->timestamp)
 			break;
 	}
 	if (pos == NULL)
@@ -174,7 +174,7 @@
 		if (dir->prev_insert_pos == NULL) {
 			/* find the position starting from tail */
 			user_directory_insert_backwards(dir, dir->tail, user);
-		} else if (timestamp < dir->prev_insert_pos->timestamp) {
+		} else if (timestamp < (time_t)dir->prev_insert_pos->timestamp) {
 			user_directory_insert_backwards(dir, dir->prev_insert_pos,
 							user);
 		} else {


More information about the dovecot-cvs mailing list