diff options
author | 2009-10-30 19:41:10 +0000 | |
---|---|---|
committer | 2009-10-30 19:41:10 +0000 | |
commit | b2c4cc1eb996d3d2f0340d1215b70bbe21a94993 (patch) | |
tree | 4fdf0c03cb87c0b20f40a491d6a9386504fdf49a | |
parent | correct interrupt status bits; patfbsd@davenulle.org (diff) | |
download | wireguard-openbsd-b2c4cc1eb996d3d2f0340d1215b70bbe21a94993.tar.xz wireguard-openbsd-b2c4cc1eb996d3d2f0340d1215b70bbe21a94993.zip |
when used with incorrect flags, zzz(8) should call zzusage(void)
instead of usage(void).
millert@ suggested checking __progname() against "zzz" to match
existing code.
ok millert@
-rw-r--r-- | usr.sbin/apm/apm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index bc2de721eeb..f77dfa2ccfc 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.23 2006/06/11 17:45:54 sturm Exp $ */ +/* $OpenBSD: apm.c,v 1.24 2009/10/30 19:41:10 sobrado Exp $ */ /* * Copyright (c) 1996 John T. Kohl @@ -220,7 +220,10 @@ main(int argc, char *argv[]) action = GETSTATUS; break; default: - usage(); + if (!strcmp(__progname, "zzz")) + zzusage(); + else + usage(); } } |