From 099dbfa714e8ef3a7cbd0c7848b008c646f126ea Mon Sep 17 00:00:00 2001 From: Igor Sobrado Date: Fri, 30 Oct 2009 19:41:11 +0000 Subject: 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@ --- usr.sbin/apm/apm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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(); } } -- cgit v1.2.3