From 5e031a6b4ee312d7bf64c5d98e7b7210444827cb Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 21 Jun 1996 21:21:18 +0000 Subject: (argp_parse): Use group_parse instead of calling group parser directly for long options. --- libshouldbeinlibc/argp-parse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libshouldbeinlibc/argp-parse.c b/libshouldbeinlibc/argp-parse.c index 0fb17bf3..b967590f 100644 --- a/libshouldbeinlibc/argp-parse.c +++ b/libshouldbeinlibc/argp-parse.c @@ -316,8 +316,9 @@ argp_parse (const struct argp *argp, int argc, char **argv, unsigned flags, /* A long option. We use shifts instead of masking for extracting the user value in order to preserve the sign. */ err = - (*groups[group_key - 1].parser)(((opt << GROUP_BITS) >> GROUP_BITS), - optarg, &state); + group_parse (&groups[group_key - 1], + (opt << GROUP_BITS) >> GROUP_BITS, optarg); + return err; } -- cgit v1.2.3