aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-07 04:07:59 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-07 04:12:17 +0200
commit40767a0da348e013ec6b6ac2b576e4b1a9fd4961 (patch)
treef9dea788df86ace12d3a545710cadbd87367e6a2
parent2da54a029210e50e993ecb400cc245fa936bc422 (diff)
downloadpasst-40767a0da348e013ec6b6ac2b576e4b1a9fd4961.tar
passt-40767a0da348e013ec6b6ac2b576e4b1a9fd4961.tar.gz
passt-40767a0da348e013ec6b6ac2b576e4b1a9fd4961.tar.bz2
passt-40767a0da348e013ec6b6ac2b576e4b1a9fd4961.tar.lz
passt-40767a0da348e013ec6b6ac2b576e4b1a9fd4961.tar.xz
passt-40767a0da348e013ec6b6ac2b576e4b1a9fd4961.tar.zst
passt-40767a0da348e013ec6b6ac2b576e4b1a9fd4961.zip
conf: Fix getopt_long() return value for --quiet
Only the short version actually worked. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--conf.c2
1 files changed, 1 insertions, 1 deletions
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' },