aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/controller.c12
-rw-r--r--src/libserver/worker_util.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/controller.c b/src/controller.c
index e4c553ddc..dde2944f5 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -175,16 +175,6 @@ struct rspamd_controller_worker_ctx {
};
-struct rspamd_controller_session {
- struct rspamd_controller_worker_ctx *ctx;
- struct rspamd_worker *wrk;
- rspamd_mempool_t *pool;
- struct rspamd_task *task;
- struct rspamd_classifier_config *cl;
- rspamd_inet_addr_t *from_addr;
- gboolean is_spam;
-};
-
static gboolean
rspamd_is_encrypted_password (const gchar *password,
struct rspamd_controller_pbkdf const **pbkdf)
@@ -1751,12 +1741,10 @@ static gboolean
rspamd_controller_stat_fin_task (void *ud)
{
struct rspamd_stat_cbdata *cbdata = ud;
- struct rspamd_controller_session *session;
struct rspamd_http_connection_entry *conn_ent;
ucl_object_t *top;
conn_ent = cbdata->conn_ent;
- session = conn_ent->ud;
top = cbdata->top;
ucl_object_insert_key (top,
diff --git a/src/libserver/worker_util.h b/src/libserver/worker_util.h
index 741180922..3242d1669 100644
--- a/src/libserver/worker_util.h
+++ b/src/libserver/worker_util.h
@@ -77,6 +77,18 @@ struct rspamd_custom_controller_command {
rspamd_controller_func_t handler;
};
+struct rspamd_controller_worker_ctx;
+
+struct rspamd_controller_session {
+ struct rspamd_controller_worker_ctx *ctx;
+ struct rspamd_worker *wrk;
+ rspamd_mempool_t *pool;
+ struct rspamd_task *task;
+ struct rspamd_classifier_config *cl;
+ rspamd_inet_addr_t *from_addr;
+ gboolean is_spam;
+};
+
/**
* Send error using HTTP and JSON output
* @param entry router entry