diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-08 20:25:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-10 23:11:21 +0000 |
commit | a23868a7106d4ea15ebb9de5d0074e34be11a03d (patch) | |
tree | fcfdc0221c51aa285554bec82efc47b853c7d5cb | |
parent | e8cc03398bf7b396d3e45558351bd952ac52bd58 (diff) | |
download | rspamd-a23868a7106d4ea15ebb9de5d0074e34be11a03d.tar.gz rspamd-a23868a7106d4ea15ebb9de5d0074e34be11a03d.zip |
Unbreak function pointer passing
-rw-r--r-- | src/rspamadm/rspamadm.c | 10 |
1 files changed, 1 insertions, 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}, |