1
0
mirror of https://passt.top/passt synced 2024-12-22 21:55:22 +00:00

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[] = {
{"debug", no_argument, NULL, 'd' },
{"quiet", no_argument, NULL, 1 },
{"quiet", no_argument, NULL, 'q' },
{"foreground", no_argument, NULL, 'f' },
{"stderr", no_argument, &c->stderr, 1 },
{"help", no_argument, NULL, 'h' },