Mercurial > dovecot > core-2.2
diff 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 |
line wrap: on
line diff
--- a/src/lib-mail/test-istream-dot.c Mon Jun 25 00:01:59 2012 +0300 +++ b/src/lib-mail/test-istream-dot.c Mon Jun 25 01:14:03 2012 +0300 @@ -71,7 +71,7 @@ } } test_istream_set_size(test_input, input_len); - i_stream_read(test_input); + (void)i_stream_read(test_input); } else { test_istream_set_size(test_input, input_len); size = 0;