aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-25 14:05:08 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-25 14:05:08 +0200
commit05405db3eb2c10249654e25efc9ede65f8c6fcfa (patch)
treecde2f702e2d6adcaf6f75503b3baa26a4050376e /src
parentadd function for add option (diff)
downloadargparser-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.c4
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;
}
}