summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libshouldbeinlibc/argp-parse.c')
-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;
}