diff options
author | 2000-01-12 16:26:47 +0000 | |
---|---|---|
committer | 2000-01-12 16:26:47 +0000 | |
commit | d340464595bf5024c2f70d5606ab50b7e78cf980 (patch) | |
tree | 89fa59812535247936c9639909ea3382d109bf05 /usr.bin/tic | |
parent | ifdef SUN4M, ok art@ (diff) | |
download | wireguard-openbsd-d340464595bf5024c2f70d5606ab50b7e78cf980.tar.xz wireguard-openbsd-d340464595bf5024c2f70d5606ab50b7e78cf980.zip |
usage() should go to stderr, not stdout.
Diffstat (limited to 'usr.bin/tic')
-rw-r--r-- | usr.bin/tic/tic.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tic/tic.c b/usr.bin/tic/tic.c index a60cc9b53e0..428f77ca01d 100644 --- a/usr.bin/tic/tic.c +++ b/usr.bin/tic/tic.c @@ -110,9 +110,11 @@ usage(void) }; size_t j; - printf("Usage: %s %s\n", _nc_progname, usage_string); - for (j = 0; j < sizeof(tbl) / sizeof(tbl[0]); j++) - puts(tbl[j]); + fprintf(stderr, "Usage: %s %s\n", _nc_progname, usage_string); + for (j = 0; j < sizeof(tbl) / sizeof(tbl[0]); j++) { + fputs(tbl[j], stderr); + putc('\n', stderr); + } exit(EXIT_FAILURE); } |