diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-22 23:39:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-22 23:39:49 +0000 |
commit | 4394fa14de48cf7000cd89d87f1b7829616ee7df (patch) | |
tree | 859f59cb1982d0cee6d78df48482872d33504d53 /utils/rspamd_http_bench.c | |
parent | 2b0e6f4d0e0582006c172867df93121755201e66 (diff) | |
download | rspamd-4394fa14de48cf7000cd89d87f1b7829616ee7df.tar.gz rspamd-4394fa14de48cf7000cd89d87f1b7829616ee7df.zip |
Fix some more issues found by coverity
Diffstat (limited to 'utils/rspamd_http_bench.c')
-rw-r--r-- | utils/rspamd_http_bench.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |