From: Vsevolod Stakhov Date: Fri, 4 Oct 2019 14:13:40 +0000 (+0100) Subject: [Minor] Oops, fix hyperscan disabled build X-Git-Tag: 2.0~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eadcee4f6509df641499f187d88b08dd01e9e6e0;p=rspamd.git [Minor] Oops, fix hyperscan disabled build --- diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index 8dc60aabb..154da021f 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -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