aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_worker.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-04-06 16:27:41 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-04-11 14:16:25 +0200
commit765813e908e0f23e98ec6224b0408a152a9d3ec0 (patch)
tree1e4140aa1a097fe081b05d74334f95973a309e28 /src/lua/lua_worker.c
parentd6da3282ea865b8c39fab3e7026296fa922e1a64 (diff)
downloadrspamd-765813e908e0f23e98ec6224b0408a152a9d3ec0.tar.gz
rspamd-765813e908e0f23e98ec6224b0408a152a9d3ec0.zip
[Minor] silence warnings about unused function results
GCC does not respect `(void) func()`
Diffstat (limited to 'src/lua/lua_worker.c')
-rw-r--r--src/lua/lua_worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_worker.c b/src/lua/lua_worker.c
index a286069cb..badc50a72 100644
--- a/src/lua/lua_worker.c
+++ b/src/lua/lua_worker.c
@@ -746,7 +746,7 @@ rspamd_lua_subprocess_io (EV_P_ ev_io *w, int revents)
/* Write reply to the child */
rspamd_socket_blocking (cbdata->sp[0]);
memset (rep, 0, sizeof (rep));
- (void)write (cbdata->sp[0], rep, sizeof (rep));
+ (void) !write (cbdata->sp[0], rep, sizeof (rep));
}
}
}
@@ -891,4 +891,4 @@ void
luaopen_worker (lua_State * L)
{
rspamd_lua_new_class (L, "rspamd{worker}", worker_reg);
-} \ No newline at end of file
+}