From: Vsevolod Stakhov Date: Tue, 13 May 2014 14:11:30 +0000 (+0100) Subject: OpenBSD fixes for rspamd-0.6. X-Git-Tag: 0.6.10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba670e6c58a6e660cfc637f5549699134d6085e8;p=thirdparty%2Frspamd.git OpenBSD fixes for rspamd-0.6. --- diff --git a/lib/client/librspamdclient.c b/lib/client/librspamdclient.c index 52620e1c33..290da0003a 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 28c3e85761..f0a61c2fd7 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; }