diff options
author | Miles Bader <miles@gnu.org> | 1996-06-21 21:21:18 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-06-21 21:21:18 +0000 |
commit | 5e031a6b4ee312d7bf64c5d98e7b7210444827cb (patch) | |
tree | e6f8ca2f6083614682004159d439eeda68adf076 /libshouldbeinlibc | |
parent | 90c65e9c74865a9ed821841190356fa9398fec73 (diff) |
(argp_parse):
Use group_parse instead of calling group parser directly for long options.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/argp-parse.c | 5 |
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; } |