dovecot-2.0: Compiler warning fixes.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 2 09:45:20 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/b2156189c319
changeset: 10822:b2156189c319
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 02 09:45:19 2010 +0200
description:
Compiler warning fixes.
diffstat:
src/anvil/penalty.c | 2 +-
src/anvil/test-penalty.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r f56c227a7fc9 -r b2156189c319 src/anvil/penalty.c
--- a/src/anvil/penalty.c Mon Mar 01 22:05:43 2010 +0200
+++ b/src/anvil/penalty.c Tue Mar 02 09:45:19 2010 +0200
@@ -166,7 +166,7 @@
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 -r f56c227a7fc9 -r b2156189c319 src/anvil/test-penalty.c
--- a/src/anvil/test-penalty.c Mon Mar 01 22:05:43 2010 +0200
+++ b/src/anvil/test-penalty.c Tue Mar 02 09:45:19 2010 +0200
@@ -9,8 +9,7 @@
{
struct penalty *penalty;
struct ioloop *ioloop;
- time_t t;
- unsigned int i, j;
+ time_t t, i, j;
test_begin("penalty");
More information about the dovecot-cvs
mailing list