Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blocklist/bin fix usage for ctl too (Jose Luis ...



details:   https://anonhg.NetBSD.org/src/rev/a6a8a65718cc
branches:  trunk
changeset: 366748:a6a8a65718cc
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jun 11 19:23:26 2022 +0000

description:
fix usage for ctl too (Jose Luis Duran)

diffstat:

 external/bsd/blocklist/bin/blocklistctl.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 185f5e8217d0 -r a6a8a65718cc external/bsd/blocklist/bin/blocklistctl.c
--- a/external/bsd/blocklist/bin/blocklistctl.c Sat Jun 11 19:15:58 2022 +0000
+++ b/external/bsd/blocklist/bin/blocklistctl.c Sat Jun 11 19:23:26 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: blocklistctl.c,v 1.1.1.1 2020/06/15 01:52:53 christos Exp $    */
+/*     $NetBSD: blocklistctl.c,v 1.2 2022/06/11 19:23:26 christos Exp $        */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: blocklistctl.c,v 1.1.1.1 2020/06/15 01:52:53 christos Exp $");
+__RCSID("$NetBSD: blocklistctl.c,v 1.2 2022/06/11 19:23:26 christos Exp $");
 
 #include <stdio.h>
 #include <time.h>
@@ -61,7 +61,7 @@
 {
        if (c == 0)
                warnx("Missing/unknown command");
-       else
+       else if (c != '?')
                warnx("Unknown option `%c'", (char)c);
        fprintf(stderr, "Usage: %s dump [-abdnrw]\n", getprogname());
        exit(EXIT_FAILURE);
@@ -123,7 +123,6 @@
                        break;
                default:
                        usage(o);
-                       break;
                }
 
        db = state_open(dbname, O_RDONLY, 0);



Home | Main Index | Thread Index | Old Index