From 236c10d33b1027d83caf6127336b924e81d32135 Mon Sep 17 00:00:00 2001 From: Holger Eitzenberger Date: Tue, 1 Feb 2011 17:30:57 +0100 Subject: ipset: pass ipset_arg argument pointer Signed-off-by: Holger Eitzenberger --- src/ipset.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/ipset.c') 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; } -- cgit v1.2.3