From ba670e6c58a6e660cfc637f5549699134d6085e8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 13 May 2014 15:11:30 +0100 Subject: [PATCH] OpenBSD fixes for rspamd-0.6. --- lib/client/librspamdclient.c | 2 +- src/webui.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client/librspamdclient.c b/lib/client/librspamdclient.c index 52620e1c3..290da0003 100644 --- a/lib/client/librspamdclient.c +++ b/lib/client/librspamdclient.c @@ -917,7 +917,7 @@ read_rspamd_reply_line (struct rspamd_connection *c, GError **err) } } /* Poll socket */ - if ((r = poll_sync_socket (c->socket, c->client->read_timeout, POLL_IN)) <= 0) { + if ((r = poll_sync_socket (c->socket, c->client->read_timeout, POLLIN)) <= 0) { if (*err == NULL) { if (r == 0) { errno = ETIMEDOUT; diff --git a/src/webui.c b/src/webui.c index 28c3e8576..f0a61c2fd 100644 --- a/src/webui.c +++ b/src/webui.c @@ -1826,7 +1826,7 @@ start_webui_worker (struct rspamd_worker *worker) #else gpointer -init_webui_worker (void) +init_webui_worker (struct config_file *cfg) { return NULL; } -- 2.39.5