diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-03-16 17:16:29 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-03-16 17:16:29 +0000 |
commit | 68bd3763641a7d83a6a0a009ba442efa513d2f76 (patch) | |
tree | ee1292d5e21d8b2e6976c025e5e2939a3602bf6c /usr.bin | |
parent | 79e682ae7b4f1108490faff68064a9ba05331cae (diff) |
use __progname
ok otto@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rev/rev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c index 3eba3a7c49e..3797777fb83 100644 --- a/usr.bin/rev/rev.c +++ b/usr.bin/rev/rev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rev.c,v 1.8 2006/07/30 06:25:43 ray Exp $ */ +/* $OpenBSD: rev.c,v 1.9 2007/03/16 17:16:28 jasper Exp $ */ /* $NetBSD: rev.c,v 1.5 1995/09/28 08:49:40 tls Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: rev.c,v 1.8 2006/07/30 06:25:43 ray Exp $"; +static char rcsid[] = "$OpenBSD: rev.c,v 1.9 2007/03/16 17:16:28 jasper Exp $"; #endif #endif /* not lint */ @@ -105,6 +105,8 @@ main(int argc, char *argv[]) void usage(void) { - (void)fprintf(stderr, "usage: rev [file ...]\n"); + extern char *__progname; + + (void)fprintf(stderr, "usage: %s [file ...]\n", __progname); exit(1); } |