From a23868a7106d4ea15ebb9de5d0074e34be11a03d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 8 Feb 2016 20:25:49 +0000 Subject: [PATCH] Unbreak function pointer passing --- src/rspamadm/rspamadm.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index d91b66304..61c06c887 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -46,21 +46,13 @@ static gboolean rspamadm_parse_ucl_var (const gchar *option_name, const gchar *value, gpointer data, GError **error); -static union { - gboolean (*func)(const gchar *option_name, - const gchar *value, gpointer data, - GError **error); - const gpointer ptr; -} rspamadm_parse_ucl_var_un = { - .func = &rspamadm_parse_ucl_var -}; static GOptionEntry entries[] = { {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Enable verbose logging", NULL}, {"list-commands", 'l', 0, G_OPTION_ARG_NONE, &list_commands, "List available commands", NULL}, - {"var", 0, 0, G_OPTION_ARG_CALLBACK, &rspamadm_parse_ucl_var_un, + {"var", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer)&rspamadm_parse_ucl_var, "Redefine UCL variable", NULL}, {"help", 'h', 0, G_OPTION_ARG_NONE, &show_help, "Show help", NULL}, -- 2.39.5