]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
OpenBSD fixes for rspamd-0.6.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 May 2014 14:11:30 +0000 (15:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 May 2014 14:11:30 +0000 (15:11 +0100)
lib/client/librspamdclient.c
src/webui.c

index 52620e1c33c12c831aac1986728c89e2bef5a374..290da0003ab16e917c7b27e63c88797a84f4641e 100644 (file)
@@ -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;
index 28c3e857615f5b4bdd45f07d802ca2bc2436e4ea..f0a61c2fd7b6a5383bfd59d2e4f570af734b6569 100644 (file)
@@ -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;
 }