diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-05-14 01:14:15 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-05-14 01:14:15 +0300 |
commit | 68efbf97390ddac355c3b54a5d825e74fb4b208d (patch) | |
tree | e5884bf3650708c683b134792db3756d28c5b697 /src/actionparser.c | |
parent | fb7e3e1352aeca03909ae3720c8cae90fcd57186 (diff) | |
download | ck-68efbf97390ddac355c3b54a5d825e74fb4b208d.tar.gz ck-68efbf97390ddac355c3b54a5d825e74fb4b208d.tar.bz2 ck-68efbf97390ddac355c3b54a5d825e74fb4b208d.zip |
small fixes
Diffstat (limited to 'src/actionparser.c')
-rw-r--r-- | src/actionparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |