]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiler warning fixes
authorTimo Sirainen <tss@iki.fi>
Tue, 7 Aug 2012 22:13:10 +0000 (01:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 7 Aug 2012 22:13:10 +0000 (01:13 +0300)
src/lib-mail/istream-attachment-extractor.h
src/lib-mail/test-istream-attachment.c

index 21855506b60f9657e809aae3050cd8d197f61e93..4981fec5af2cb1f1012065f6760eaed92ccad3b5 100644 (file)
@@ -49,7 +49,7 @@ struct istream_attachment_settings {
 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
index 5cb117b3cb92f950f909ed4ee2420537308fb33e..370451301c32345c3928e8b7e3185169d2473b6a 100644 (file)
@@ -99,7 +99,8 @@ static int test_open_attachment_ostream(struct istream_attachment_info *info,
        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;
 }