diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-25 14:05:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-25 14:05:08 +0200 |
commit | 05405db3eb2c10249654e25efc9ede65f8c6fcfa (patch) | |
tree | cde2f702e2d6adcaf6f75503b3baa26a4050376e /src/argparser.c | |
parent | add function for add option (diff) | |
download | argparser-05405db3eb2c10249654e25efc9ede65f8c6fcfa.tar.gz argparser-05405db3eb2c10249654e25efc9ede65f8c6fcfa.tar.bz2 argparser-05405db3eb2c10249654e25efc9ede65f8c6fcfa.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/argparser.c | 4 |
1 files 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; } } |