diff options
author | 2003-07-26 17:34:18 +0000 | |
---|---|---|
committer | 2003-07-26 17:34:18 +0000 | |
commit | 7da4db7bf1cc9630f37c6f46031ed972a9fe7275 (patch) | |
tree | 166f784496a099646e7a25efdbd8d5233dd9e9b6 | |
parent | man page for myname(5)/mygate(5); (diff) | |
download | wireguard-openbsd-7da4db7bf1cc9630f37c6f46031ed972a9fe7275.tar.xz wireguard-openbsd-7da4db7bf1cc9630f37c6f46031ed972a9fe7275.zip |
Add missing "break" in -s case and make usage() explicitly take void.
From Andrey Matveev.
-rw-r--r-- | usr.sbin/mtree/mtree.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/mtree/mtree.c b/usr.sbin/mtree/mtree.c index 82453468213..b50e0e50724 100644 --- a/usr.sbin/mtree/mtree.c +++ b/usr.sbin/mtree/mtree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mtree.c,v 1.17 2003/06/26 19:47:09 deraadt Exp $ */ +/* $OpenBSD: mtree.c,v 1.18 2003/07/26 17:34:18 millert Exp $ */ /* $NetBSD: mtree.c,v 1.7 1996/09/05 23:29:22 thorpej Exp $ */ /*- @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$OpenBSD: mtree.c,v 1.17 2003/06/26 19:47:09 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: mtree.c,v 1.18 2003/07/26 17:34:18 millert Exp $"; #endif #endif /* not lint */ @@ -123,6 +123,7 @@ main(int argc, char *argv[]) crc_total = ~strtol(optarg, &p, 0); if (*p) error("illegal seed value -- %s", optarg); + break; case 't': tflag = 1; break; @@ -166,7 +167,7 @@ main(int argc, char *argv[]) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: mtree [-cdeilnqrtUux] [-f spec] [-K key] [-k key] [-p path] [-s seed]\n"); |