Mercurial > dovecot > core-2.2
comparison src/lib-mail/test-istream-dot.c @ 14682:d0d7b810646b
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Jun 2012 01:14:03 +0300 |
parents | ba770cba5598 |
children | 90710c6c3beb |
comparison
equal
deleted
inserted
replaced
14681:ca37d1577291 | 14682:d0d7b810646b |
---|---|
69 str_append_n(str, data, size); | 69 str_append_n(str, data, size); |
70 i_stream_skip(input, size); | 70 i_stream_skip(input, size); |
71 } | 71 } |
72 } | 72 } |
73 test_istream_set_size(test_input, input_len); | 73 test_istream_set_size(test_input, input_len); |
74 i_stream_read(test_input); | 74 (void)i_stream_read(test_input); |
75 } else { | 75 } else { |
76 test_istream_set_size(test_input, input_len); | 76 test_istream_set_size(test_input, input_len); |
77 size = 0; | 77 size = 0; |
78 for (i = 1; i < output_len; i++) { | 78 for (i = 1; i < output_len; i++) { |
79 i_stream_set_max_buffer_size(input, i); | 79 i_stream_set_max_buffer_size(input, i); |