diff options
author | 2001-03-01 21:15:41 +0000 | |
---|---|---|
committer | 2001-03-01 21:15:41 +0000 | |
commit | 16363961dc75db97c89579c74d1c4d432f9e829d (patch) | |
tree | d2b8eb96c321f520e191728b96b1ee5796e30fd4 | |
parent | describe a few new flags; jlemon@freebsd.org (diff) | |
download | wireguard-openbsd-16363961dc75db97c89579c74d1c4d432f9e829d.tar.xz wireguard-openbsd-16363961dc75db97c89579c74d1c4d432f9e829d.zip |
Sync usage() with man page; mpech@prosoft.org.lv
-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); } |