From 05405db3eb2c10249654e25efc9ede65f8c6fcfa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Jun 2013 14:05:08 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/argparser.c b/src/argparser.c index e1d8825..6442839 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -245,7 +245,7 @@ extern void args_dispose() * @param option The option * @param help Help text, multi-line, `null` if hidden */ -extern void args_add_option(args_Option* option, char* help) +extern void args_add_option(args_Option option, char* help) { if (args_options_count == args_options_size) { @@ -265,7 +265,7 @@ extern void args_add_option(args_Option* option, char* help) for (i; i < n; i++) args_optmap_put(*(option->alternatives + i), args_options_count); args_opts_put(option->standard, null); - *(args_options + args_options_count) = *option; + *(args_options + args_options_count) = option; (*(args_options + args_options_count++)).help = help; } } -- cgit v1.2.3-70-g09d2