diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-26 17:34:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-26 17:34:19 +0000 |
commit | dfeedfac918a519d6a9f3b19b4919ee88581ad25 (patch) | |
tree | 5c88ecb6c335cdcda9bcbf799e4a912498688820 /usr.sbin/mtree/mtree.c | |
parent | de57d5974c7853b545fd245020a9e3b51686ae53 (diff) |
Add missing "break" in -s case and make usage() explicitly take void.
From Andrey Matveev.
Diffstat (limited to 'usr.sbin/mtree/mtree.c')
-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"); |