diff options
author | Holger Eitzenberger <holger@eitzenberger.org> | 2011-02-01 17:30:57 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-02-01 17:30:57 +0100 |
commit | 236c10d33b1027d83caf6127336b924e81d32135 (patch) | |
tree | 42bd2a094e27cbfa701a648368808a3bd8e8623a /src | |
parent | 77ae557f809e0f8cb33d1514934fe3876c6fd798 (diff) |
ipset: pass ipset_arg argument pointer
Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ipset.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ipset.c b/src/ipset.c index 8ed3e10..2cfcfac 100644 --- a/src/ipset.c +++ b/src/ipset.c @@ -236,10 +236,7 @@ call_parser(int *argc, char *argv[], const struct ipset_arg *args) /* Fall through */ case IPSET_OPTIONAL_ARG: if (i + 1 <= *argc) { - ret = ipset_call_parser(session, - arg->parse, - optstr, arg->opt, - argv[i]); + ret = ipset_call_parser(session, arg, argv[i]); if (ret < 0) return ret; ipset_shift_argv(argc, argv, i); @@ -247,10 +244,7 @@ call_parser(int *argc, char *argv[], const struct ipset_arg *args) } /* Fall through */ default: - ret = ipset_call_parser(session, - arg->parse, - optstr, arg->opt, - optstr); + ret = ipset_call_parser(session, arg, optstr); if (ret < 0) return ret; } |