From: Timo Sirainen Date: Tue, 2 Mar 2010 07:45:19 +0000 (+0200) Subject: Compiler warning fixes. X-Git-Tag: 2.0.beta4~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfca74b8c3d2a022f484adb2407c69a90f2ff389;p=thirdparty%2Fdovecot%2Fcore.git Compiler warning fixes. --HG-- branch : HEAD --- diff --git a/src/anvil/penalty.c b/src/anvil/penalty.c index 3284f58148..e47b43bcc6 100644 --- a/src/anvil/penalty.c +++ b/src/anvil/penalty.c @@ -166,7 +166,7 @@ static void penalty_timeout(struct penalty *penalty) while (penalty->oldest != NULL) { rec = penalty->oldest; - if (rec->last_penalty + rec->last_update > expire_time) + if (rec->last_penalty + (time_t)rec->last_update > expire_time) break; hash_table_remove(penalty->hash, rec->ident); penalty_rec_free(penalty, rec); diff --git a/src/anvil/test-penalty.c b/src/anvil/test-penalty.c index 46c7e93e47..bd7055cbe6 100644 --- a/src/anvil/test-penalty.c +++ b/src/anvil/test-penalty.c @@ -9,8 +9,7 @@ static void test_penalty_checksum(void) { struct penalty *penalty; struct ioloop *ioloop; - time_t t; - unsigned int i, j; + time_t t, i, j; test_begin("penalty");