aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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;
}
}