summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-01-12 16:26:48 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-01-12 16:26:48 +0000
commit7dcefe83819f0d8ae536af305facd310ac25ba03 (patch)
treecf49b74bd05a0be55f9b933177467aefaf9c24cb /usr.bin
parentfcba6bd5247db43dd918c56f8842484310c71a16 (diff)
usage() should go to stderr, not stdout.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tic/tic.c8
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);
}