From 25ef6b98215f5518dae638ce0fd6b4710f17b113 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 24 May 2018 19:55:37 +0100 Subject: [Project] Rework rspamadm and Lua init path --- src/rspamadm/control.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/rspamadm/control.c') diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index 35cecbc69..35b5415e7 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -31,8 +31,10 @@ static gboolean ucl = TRUE; static gboolean compact = FALSE; static gdouble timeout = 1.0; -static void rspamadm_control (gint argc, gchar **argv); -static const char *rspamadm_control_help (gboolean full_help); +static void rspamadm_control (gint argc, gchar **argv, + const struct rspamadm_command *cmd); +static const char *rspamadm_control_help (gboolean full_help, + const struct rspamadm_command *cmd); struct rspamadm_command control_command = { .name = "control", @@ -64,7 +66,7 @@ static GOptionEntry entries[] = { }; static const char * -rspamadm_control_help (gboolean full_help) +rspamadm_control_help (gboolean full_help, const struct rspamadm_command *cmd) { const char *help_str; @@ -158,7 +160,7 @@ rspamd_control_finish_handler (struct rspamd_http_connection *conn, } static void -rspamadm_control (gint argc, gchar **argv) +rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd) { GOptionContext *context; GError *error = NULL; -- cgit v1.2.3