dovecot-2.2: Added (void) prefix for ignoring return values we d...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 16 12:48:55 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/de20b4fa60ac
changeset: 17497:de20b4fa60ac
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 16 15:42:39 2014 +0300
description:
Added (void) prefix for ignoring return values we don't care about.
Hopefully this quiets down Coverity warnings also of them?

diffstat:

 src/doveadm/dsync/dsync-ibc-stream.c |  2 +-
 src/login-common/ssl-proxy-openssl.c |  6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3d3796c15074 -r de20b4fa60ac src/doveadm/dsync/dsync-ibc-stream.c
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Mon Jun 16 15:41:52 2014 +0300
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Mon Jun 16 15:42:39 2014 +0300
@@ -340,7 +340,7 @@
 		   "read() failed: EOF" errors on failing dsyncs */
 		o_stream_nsend_str(ibc->output,
 			t_strdup_printf("%c\n", items[ITEM_DONE].chr));
-		o_stream_nfinish(ibc->output);
+		(void)o_stream_nfinish(ibc->output);
 	}
 
 	timeout_remove(&ibc->to);
diff -r 3d3796c15074 -r de20b4fa60ac src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c	Mon Jun 16 15:41:52 2014 +0300
+++ b/src/login-common/ssl-proxy-openssl.c	Mon Jun 16 15:42:39 2014 +0300
@@ -333,7 +333,7 @@
 	}
 
 	if (corked)
-		net_set_cork(proxy->fd_ssl, FALSE);
+		(void)net_set_cork(proxy->fd_ssl, FALSE);
 
 	ssl_proxy_unref(proxy);
 }
@@ -553,9 +553,9 @@
 		if (proxy->sslout_size == 0)
 			ssl_set_io(proxy, SSL_REMOVE_OUTPUT);
 		else {
-			net_set_cork(proxy->fd_ssl, TRUE);
+			(void)net_set_cork(proxy->fd_ssl, TRUE);
 			ssl_write(proxy);
-			net_set_cork(proxy->fd_ssl, FALSE);
+			(void)net_set_cork(proxy->fd_ssl, FALSE);
 		}
 	}
 


More information about the dovecot-cvs mailing list