summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-21 21:21:18 +0000
committerMiles Bader <miles@gnu.org>1996-06-21 21:21:18 +0000
commit5e031a6b4ee312d7bf64c5d98e7b7210444827cb (patch)
treee6f8ca2f6083614682004159d439eeda68adf076
parent90c65e9c74865a9ed821841190356fa9398fec73 (diff)
(argp_parse):
Use group_parse instead of calling group parser directly for long options.
-rw-r--r--libshouldbeinlibc/argp-parse.c5
1 files 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;
}