From eadcee4f6509df641499f187d88b08dd01e9e6e0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 4 Oct 2019 15:13:40 +0100 Subject: [PATCH] [Minor] Oops, fix hyperscan disabled build --- src/libserver/worker_util.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.39.5