summaryrefslogtreecommitdiffstats
path: root/src/ipset.c
diff options
context:
space:
mode:
authorHolger Eitzenberger <holger@eitzenberger.org>2011-02-01 17:30:57 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-02-01 17:30:57 +0100
commit236c10d33b1027d83caf6127336b924e81d32135 (patch)
tree42bd2a094e27cbfa701a648368808a3bd8e8623a /src/ipset.c
parent77ae557f809e0f8cb33d1514934fe3876c6fd798 (diff)
ipset: pass ipset_arg argument pointer
Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Diffstat (limited to 'src/ipset.c')
-rw-r--r--src/ipset.c10
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;
}