]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix hyperscan disabled build
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Oct 2019 14:13:40 +0000 (15:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Oct 2019 14:13:40 +0000 (15:13 +0100)
src/libserver/worker_util.c

index 8dc60aabb18b3bb0c6c5519ea0e352dd751eeb6c..154da021fe28605dae3a056b623d5444ca209948 100644 (file)
@@ -1460,8 +1460,7 @@ rspamd_worker_hyperscan_ready (struct rspamd_main *rspamd_main,
                                                           struct rspamd_worker *worker, gint fd,
                                                           gint attached_fd,
                                                           struct rspamd_control_command *cmd,
-                                                          gpointer ud)
-{
+                                                          gpointer ud) {
        struct rspamd_control_reply rep;
        struct rspamd_re_cache *cache = worker->srv->cfg->re_cache;
 
@@ -1484,6 +1483,7 @@ rspamd_worker_hyperscan_ready (struct rspamd_main *rspamd_main,
 
        return TRUE;
 }
+#endif /* With Hyperscan */
 
 gboolean
 rspamd_worker_check_context (gpointer ctx, guint64 magic)
@@ -1491,5 +1491,4 @@ rspamd_worker_check_context (gpointer ctx, guint64 magic)
        struct rspamd_abstract_worker_ctx *actx = (struct rspamd_abstract_worker_ctx*)ctx;
 
        return actx->magic == magic;
-}
-#endif
\ No newline at end of file
+}
\ No newline at end of file