From 40767a0da348e013ec6b6ac2b576e4b1a9fd4961 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 7 Oct 2021 04:07:59 +0200 Subject: conf: Fix getopt_long() return value for --quiet Only the short version actually worked. Signed-off-by: Stefano Brivio --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.c b/conf.c index 4a888ab..3d07692 100644 --- a/conf.c +++ b/conf.c @@ -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' }, -- cgit v1.2.3