From 4394fa14de48cf7000cd89d87f1b7829616ee7df Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 22 Feb 2016 23:39:49 +0000 Subject: Fix some more issues found by coverity --- utils/rspamd_http_bench.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/rspamd_http_bench.c') diff --git a/utils/rspamd_http_bench.c b/utils/rspamd_http_bench.c index 8007d891b..c9a752243 100644 --- a/utils/rspamd_http_bench.c +++ b/utils/rspamd_http_bench.c @@ -141,10 +141,10 @@ rspamd_http_client_func (struct event_base *ev_base, struct lat_elt *latency, struct client_cbdata *cb; gint fd, flags; - g_assert ( - (fd = rspamd_inet_address_connect (addr, SOCK_STREAM, TRUE)) != -1); + fd = rspamd_inet_address_connect (addr, SOCK_STREAM, TRUE); + g_assert (fd != -1); flags = 1; - setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, &flags, sizeof (flags)); + (void)setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, &flags, sizeof (flags)); conn = rspamd_http_connection_new (rspamd_client_body, rspamd_client_err, rspamd_client_finish, RSPAMD_HTTP_CLIENT_SIMPLE, RSPAMD_HTTP_CLIENT, c); -- cgit v1.2.3