diff options
| author | christos <christos@NetBSD.org> | 2022-06-11 19:15:58 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2022-06-11 19:15:58 +0000 |
| commit | 0c76cc436e326da4ca0aeb045eb2ceca753e9bb7 (patch) | |
| tree | 4af3b6977891da432ca08dd883c031ff69d7e787 | |
| parent | 142ac57cd36d7d27451f4aca4cb6562d6066429f (diff) | |
fix usage error (Jose Luis Duran)
| -rw-r--r-- | external/bsd/blocklist/bin/blocklistd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/external/bsd/blocklist/bin/blocklistd.c b/external/bsd/blocklist/bin/blocklistd.c index 89e5684a8fc..af174457914 100644 --- a/external/bsd/blocklist/bin/blocklistd.c +++ b/external/bsd/blocklist/bin/blocklistd.c @@ -1,4 +1,4 @@ -/* $NetBSD: blocklistd.c,v 1.1.1.1 2020/06/15 01:52:53 christos Exp $ */ +/* $NetBSD: blocklistd.c,v 1.2 2022/06/11 19:15:58 christos Exp $ */ /*- * Copyright (c) 2015 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include "config.h" #endif #include <sys/cdefs.h> -__RCSID("$NetBSD: blocklistd.c,v 1.1.1.1 2020/06/15 01:52:53 christos Exp $"); +__RCSID("$NetBSD: blocklistd.c,v 1.2 2022/06/11 19:15:58 christos Exp $"); #include <sys/types.h> #include <sys/socket.h> @@ -105,7 +105,7 @@ sigdone(int n __unused) static __dead void usage(int c) { - if (c) + if (c != '?') warnx("Unknown option `%c'", (char)c); fprintf(stderr, "Usage: %s [-vdfr] [-c <config>] [-R <rulename>] " "[-P <sockpathsfile>] [-C <controlprog>] [-D <dbfile>] " @@ -474,7 +474,7 @@ main(int argc, char *argv[]) argc -= optind; if (argc) - usage(0); + usage('?'); signal(SIGHUP, sighup); signal(SIGINT, sigdone); |
