diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-03-01 21:15:42 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-03-01 21:15:42 +0000 |
commit | 400f69cdf0fc2e9a787988f6e2b64980e7767c70 (patch) | |
tree | 3068be47a710bc5217c03a50b24fe2581fb36bec /usr.bin/getconf | |
parent | 9eb1f3e196aaf100b05b7b0951aa932e488d741d (diff) |
Sync usage() with man page; mpech@prosoft.org.lv
Diffstat (limited to 'usr.bin/getconf')
-rw-r--r-- | usr.bin/getconf/getconf.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/getconf/getconf.c b/usr.bin/getconf/getconf.c index d488c4f3f75..f99bbae896e 100644 --- a/usr.bin/getconf/getconf.c +++ b/usr.bin/getconf/getconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getconf.c,v 1.3 1996/06/26 05:33:43 deraadt Exp $ */ +/* $OpenBSD: getconf.c,v 1.4 2001/03/01 21:15:41 aaron Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: getconf.c,v 1.3 1996/06/26 05:33:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: getconf.c,v 1.4 2001/03/01 21:15:41 aaron Exp $"; #endif /* not lint */ #include <stdio.h> @@ -233,7 +233,8 @@ main(argc, argv) static void usage() { - fprintf (stderr, "usage: getconf system_var\n"); - fprintf (stderr, " getconf path_var pathname\n"); - exit(1); + extern char *__progname; + + (void)fprintf(stderr, "usage: %s name [pathname]\n", __progname); + exit(1); } |