diff --git a/mxqset.c b/mxqset.c index c67e4e33..126471f6 100644 --- a/mxqset.c +++ b/mxqset.c @@ -186,14 +186,14 @@ static error_t parser (int key, char *arg, struct argp_state *state) { } static const struct argp_option options[] = { - {"closed", 10, NULL, 0, NULL}, - {"open", 11, NULL, 0, NULL}, - {"blacklist", 13, "", 0, NULL}, - {"whitelist", 15, "", 0, NULL}, + { .name = "closed", .key = 10 }, + { .name = "open", .key = 11 }, + { .name = "blacklist", .key = 13 }, + { .name = "whitelist", .key = 15 }, {0} }; -static const struct argp argp = { options, parser, NULL, NULL }; +static const struct argp argp = { .options = options, .parser = parser }; static __attribute__ ((noreturn)) void exit_usage(void) { fprintf(stderr,