dovecot-2.2: Compiler warning fixes

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 8 01:13:16 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/6de60c6ea713
changeset: 14746:6de60c6ea713
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 08 01:13:10 2012 +0300
description:
Compiler warning fixes

diffstat:

 src/lib-mail/istream-attachment-extractor.h |  2 +-
 src/lib-mail/test-istream-attachment.c      |  3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 962215040871 -r 6de60c6ea713 src/lib-mail/istream-attachment-extractor.h
--- a/src/lib-mail/istream-attachment-extractor.h	Mon Aug 06 17:00:47 2012 +0300
+++ b/src/lib-mail/istream-attachment-extractor.h	Wed Aug 08 01:13:10 2012 +0300
@@ -49,7 +49,7 @@
 struct istream *
 i_stream_create_attachment_extractor(struct istream *input,
 				     struct istream_attachment_settings *set,
-				     void *context);
+				     void *context) ATTR_NULL(3);
 
 /* Returns TRUE if the last read returned 0 only because
    drain_parent_input=FALSE and we didn't have anything to return, but
diff -r 962215040871 -r 6de60c6ea713 src/lib-mail/test-istream-attachment.c
--- a/src/lib-mail/test-istream-attachment.c	Mon Aug 06 17:00:47 2012 +0300
+++ b/src/lib-mail/test-istream-attachment.c	Wed Aug 08 01:13:10 2012 +0300
@@ -99,7 +99,8 @@
 	a->base64_blocks_per_line = info->base64_blocks_per_line;
 
 	*output_r = o_stream_create_buffer(attachment_data);
-	o_stream_seek(*output_r, a->buffer_offset);
+	if (o_stream_seek(*output_r, a->buffer_offset) < 0)
+		i_unreached();
 	return 0;
 }
 


More information about the dovecot-cvs mailing list