conf: Fix getopt_long() return value for --quiet

Only the short version actually worked.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-07 04:07:59 +02:00
parent 2da54a0292
commit 40767a0da3

2
conf.c
View file

@ -914,7 +914,7 @@ void conf(struct ctx *c, int argc, char **argv)
{ {
struct option options[] = { struct option options[] = {
{"debug", no_argument, NULL, 'd' }, {"debug", no_argument, NULL, 'd' },
{"quiet", no_argument, NULL, 1 }, {"quiet", no_argument, NULL, 'q' },
{"foreground", no_argument, NULL, 'f' }, {"foreground", no_argument, NULL, 'f' },
{"stderr", no_argument, &c->stderr, 1 }, {"stderr", no_argument, &c->stderr, 1 },
{"help", no_argument, NULL, 'h' }, {"help", no_argument, NULL, 'h' },