commit eadcee4: [Minor] Oops, fix hyperscan disabled build
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Oct 4 14:14:12 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-04 15:13:40 +0100
URL: https://github.com/rspamd/rspamd/commit/eadcee4f6509df641499f187d88b08dd01e9e6e0 (HEAD -> master)
[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
More information about the Commits
mailing list