summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-06-22 18:33:49 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-06-22 18:33:49 +0000
commitc5d43598e24646c66f6f575423bee3adb11afd00 (patch)
tree241273594a92222e658c190271f63c74f8d59c4a /usr.bin
parentfc874869d6218d69f5c85a8de7d9d1427779eb1d (diff)
Reduce verbosity in tset/reset usage()
from jmc, ok kn
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tset/tset.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c
index c6c2e84dfc0..1ea5f876747 100644
--- a/usr.bin/tset/tset.c
+++ b/usr.bin/tset/tset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tset.c,v 1.42 2021/06/22 18:32:24 tb Exp $ */
+/* $OpenBSD: tset.c,v 1.43 2021/06/22 18:33:48 tb Exp $ */
/****************************************************************************
* Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. *
@@ -1094,28 +1094,9 @@ obsolete(char **argv)
static void
usage(void)
{
- static const char *tbl[] =
- {
- ""
- ,"Options:"
- ," -c set control characters"
- ," -e ch erase character"
- ," -I no initialization strings"
- ," -i ch interrupt character"
- ," -k ch kill character"
- ," -m mapping map identifier to type"
- ," -Q do not output control key settings"
- ," -r display term on stderr"
- ," -s output TERM set command"
- ," -V print curses-version"
- ," -w set window-size"
- };
- unsigned n;
- (void) fprintf(stderr, "Usage: %s [-cIQqrsVw] [-] "
- "[-e ch] [-i ch] [-k ch] [-m mapping] [terminal]\n",
+ (void) fprintf(stderr, "usage: %s [-cIQqrsVw] [-] "
+ "[-e ch] [-i ch] [-k ch] [-m mapping] [terminal]",
_nc_progname);
- for (n = 0; n < sizeof(tbl) / sizeof(tbl[0]); ++n)
- fprintf(stderr, "%s\n", tbl[n]);
exit_error();
/* NOTREACHED */