summaryrefslogtreecommitdiffstats
path: root/bin/kenv
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-11-15 15:46:45 +0000
committerdd <dd@FreeBSD.org>2001-11-15 15:46:45 +0000
commitbbce60529dae7dadfc96fff97867c3aa5724c083 (patch)
treef65461320ecad3d909e1ac67f33919b01685f418 /bin/kenv
parentc5e0ef53986c30b6d8be74f0137da4e3c72e9f5b (diff)
downloadFreeBSD-src-bbce60529dae7dadfc96fff97867c3aa5724c083.zip
FreeBSD-src-bbce60529dae7dadfc96fff97867c3aa5724c083.tar.gz
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>
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 4e5970a..4704d51 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
OpenPOWER on IntegriCloud