dovecot-2.2: lib: Compiler warning fix for test-ostream-failure-at.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 16 13:58:45 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/8076318a7b0e
changeset: 18868:8076318a7b0e
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 16 16:56:08 2015 +0300
description:
lib: Compiler warning fix for test-ostream-failure-at.

diffstat:

 src/lib/test-ostream-failure-at.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c6ed48c7f2a0 -r 8076318a7b0e src/lib/test-ostream-failure-at.c
--- a/src/lib/test-ostream-failure-at.c	Tue Jun 16 16:40:29 2015 +0300
+++ b/src/lib/test-ostream-failure-at.c	Tue Jun 16 16:56:08 2015 +0300
@@ -22,7 +22,7 @@
 		buf_output = o_stream_create_buffer(buf);
 		output = o_stream_create_failure_at(buf_output, i, TEST_ERRMSG);
 		if (i > 0)
-			test_assert(o_stream_send(output, test_data, sizeof(test_data)) == i);
+			test_assert(o_stream_send(output, test_data, sizeof(test_data)) == (int)i);
 		test_assert_idx(o_stream_send(output, test_data, sizeof(test_data)) == -1 &&
 				output->offset == i &&
 				output->stream_errno == EIO &&


More information about the dovecot-cvs mailing list