From 36f969abb738267aeff250db04a37a92a64e6cc9 Mon Sep 17 00:00:00 2001 From: Igor Socec Date: Sun, 27 Nov 2016 23:43:08 +0100 Subject: [PATCH] Print help message to stdout instead of stderr --- moxerver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/moxerver.c b/moxerver.c index f603bf2..402485c 100644 --- a/moxerver.c +++ b/moxerver.c @@ -19,14 +19,14 @@ client_t client; /* connected client */ client_t new_client; /* reserved for a new client request */ tty_t tty_dev; /* connected tty device */ -/* Prints help message. */ +/* Prints the help message. */ static void usage() { //TODO maybe some styling should be done - fprintf(stderr, "Usage: %s -p tcp_port [-t tty_path] [-d] [-h]\n", NAME); - fprintf(stderr, "\t-t\ttty dev path (if not specified %s needs to be defined)\n", CONFILE); - fprintf(stderr, "\t-d\tturns on debug messages\n"); - fprintf(stderr, "\n"); + fprintf(stdout, "Usage: %s -p tcp_port [-t tty_path] [-d] [-h]\n", NAME); + fprintf(stdout, "\t-t\ttty dev path (if not specified %s needs to be defined)\n", CONFILE); + fprintf(stdout, "\t-d\tturns on debug messages\n"); + fprintf(stdout, "\n"); } /* Performs cleanup and exit. */