aboutsummaryrefslogtreecommitdiff
path: root/bin/kenv
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-11-15 15:46:45 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-11-15 15:46:45 +0000
commitad3f90f6ca9de7fee945fa9b9a901caaf14871a9 (patch)
treef65461320ecad3d909e1ac67f33919b01685f418 /bin/kenv
parentaabb3df7da038b0304ae2b5b1eda72f1e4cc0f83 (diff)
downloadsrc-ad3f90f6ca9de7fee945fa9b9a901caaf14871a9.tar.gz
src-ad3f90f6ca9de7fee945fa9b9a901caaf14871a9.zip
Deuglify the usage message by putting the program name after the
"usage:" string. This is how most (all?) other programs in the system do it. PR: 31596 Submitted by: Cyrille Lefevre <clefevre@citeweb.net>
Notes
Notes: svn path=/head/; revision=86404
Diffstat (limited to 'bin/kenv')
-rw-r--r--bin/kenv/kenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/kenv/kenv.c b/bin/kenv/kenv.c
index 4e5970a2c8ab..4704d510fd2f 100644
--- a/bin/kenv/kenv.c
+++ b/bin/kenv/kenv.c
@@ -38,7 +38,8 @@ static char sbuf[1024];
static void
usage(void)
{
- errx(1, "usage: [-h] [variable]");
+ (void)fprintf(stderr, "usage: kenv [-h] [variable]\n");
+ exit(1);
}
int