From 68efbf97390ddac355c3b54a5d825e74fb4b208d Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 14 May 2018 01:14:15 +0300 Subject: small fixes --- src/actionparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actionparser.c') diff --git a/src/actionparser.c b/src/actionparser.c index 6c3cb77..55fe79c 100644 --- a/src/actionparser.c +++ b/src/actionparser.c @@ -55,7 +55,7 @@ int next_token() { /* copy the option from the list * to the UserOpt struct */ -void get_opt(int position, UserOpt *opt) { +void get_opt(UserOpt *opt) { /* get arg */ next_token(); list_add(opt->args, token); @@ -63,7 +63,7 @@ void get_opt(int position, UserOpt *opt) { void fill_args_list(int arg_num, UserOpt *opt) { for (int i = 0; i < arg_num; i++) { - get_opt(i, opt); + get_opt(opt); } } -- cgit v1.2.3