commit 73586a2c793e786aa62b7c309fbb5e2c69099ed6 parent 9b070b25de978c2daea2556c53c6f00e3b9367d9 Author: hhvn <dev@hhvn.uk> Date: Sun, 6 Jun 2021 14:59:36 +0100 main.c: print usage to stderr Diffstat:
M | main.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c @@ -30,7 +30,7 @@ char *argv0; void usage(void) { - printf("usage: %s [-vCc] [-h host] [-p port] [-f planfile]\n", basename(argv0)); + fprintf(stderr, "usage: %s [-vCc] [-h host] [-p port] [-f planfile]\n", basename(argv0)); exit(EXIT_USAGE); }