aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c
index 15b22f53e..cf07f1f91 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -115,7 +115,6 @@ static time_t start_time;
static gchar greetingbuf[1024];
static sig_atomic_t wanna_die = 0;
-extern rspamd_hash_t *counters;
static gboolean controller_write_socket (void *arg);
@@ -793,7 +792,7 @@ process_command (struct controller_command *cmd, gchar **cmd_args, struct contro
}
break;
case COMMAND_COUNTERS:
- rspamd_hash_foreach (counters, counter_write_callback, session);
+ rspamd_hash_foreach (rspamd_main->counters, counter_write_callback, session);
break;
}
return TRUE;