dovecot-2.0: Compiler warning fixes.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 2 10:28:25 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/fb0666d3b067
changeset: 10823:fb0666d3b067
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 02 10:28:24 2010 +0200
description:
Compiler warning fixes.
diffstat:
src/anvil/test-penalty.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r b2156189c319 -r fb0666d3b067 src/anvil/test-penalty.c
--- a/src/anvil/test-penalty.c Tue Mar 02 09:45:19 2010 +0200
+++ b/src/anvil/test-penalty.c Tue Mar 02 10:28:24 2010 +0200
@@ -9,7 +9,8 @@
{
struct penalty *penalty;
struct ioloop *ioloop;
- time_t t, i, j;
+ time_t t;
+ unsigned int i, j;
test_begin("penalty");
@@ -23,11 +24,11 @@
for (j = I_MIN(1, i-1); j <= i; j++) {
test_assert(penalty_get(penalty, "foo", &t) == 5+i);
- test_assert(t == 12345678 + i);
+ test_assert(t == (time_t)(12345678 + i));
test_assert(penalty_has_checksum(penalty, "foo", i));
}
test_assert(penalty_get(penalty, "foo", &t) == 5+i);
- test_assert(t == 12345678 + i);
+ test_assert(t == (time_t)(12345678 + i));
test_assert(!penalty_has_checksum(penalty, "foo", j));
}
test_assert(penalty_get(penalty, "foo2", &t) == 0);
@@ -39,12 +40,12 @@
penalty_inc(penalty, "foo", 0, 5 + i);
test_assert(penalty_get(penalty, "foo", &t) == 5+i);
- test_assert(t == 12345678 + i);
+ test_assert(t == (time_t)(12345678 + i));
test_assert(!penalty_has_checksum(penalty, "foo", 1));
for (j = 2; j <= i; j++) {
test_assert(penalty_get(penalty, "foo", &t) == 5+i);
- test_assert(t == 12345678 + i);
+ test_assert(t == (time_t)(12345678 + i));
test_assert(penalty_has_checksum(penalty, "foo", i));
}
More information about the dovecot-cvs
mailing list