From b3dfe6cb6fe0c5311f2d453a5a736ae443bbd5cd Mon Sep 17 00:00:00 2001 From: Martin Johansson Date: Mon, 11 Apr 2011 20:38:57 +0200 Subject: [PATCH] Clean up 'help'. --- src/conf.c | 1 - src/conf.h | 2 ++ src/main.c | 10 +++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/conf.c b/src/conf.c index e3d417c..38b3285 100644 --- a/src/conf.c +++ b/src/conf.c @@ -40,7 +40,6 @@ static config_t configuration; -#define DEFAULT_CONFIG "/etc/umurmur.conf" #define DEFAULT_WELCOME "Welcome to uMurmur!" #define DEFAULT_MAX_CLIENTS 10 #define DEFAULT_MAX_BANDWIDTH 48000 diff --git a/src/conf.h b/src/conf.h index 0655446..32531f8 100644 --- a/src/conf.h +++ b/src/conf.h @@ -33,6 +33,8 @@ #include "messages.h" +#define DEFAULT_CONFIG "/etc/umurmur.conf" + typedef enum param { CERTIFICATE, KEY, diff --git a/src/main.c b/src/main.c index fce997a..1e22885 100644 --- a/src/main.c +++ b/src/main.c @@ -217,16 +217,16 @@ void setscheduler() void printhelp() { printf("uMurmur version %s. Mumble protocol %d.%d.%d\n", UMURMUR_VERSION, PROTVER_MAJOR, PROTVER_MINOR, PROTVER_PATCH); - printf("Usage: umurmurd [-d] [-p ] [-c ] [-h]\n"); - printf(" -d - Do not daemonize\n"); - printf(" -p - Write PID to this file\n"); - printf(" -c - Specify configuration file\n"); + printf("Usage: umurmurd [-d] [-r] [-h] [-p ] [-c ] [-a ] [-b ]\n"); + printf(" -d - Do not daemonize - run in foreground.\n"); #ifdef _POSIX_PRIORITY_SCHEDULING printf(" -r - Run with realtime priority\n"); #endif + printf(" -h - Print this help\n"); + printf(" -p - Write PID to this file\n"); + printf(" -c - Specify configuration file (default %s)\n", DEFAULT_CONFIG); printf(" -a
- Bind to IP address\n"); printf(" -b - Bind to port\n"); - printf(" -h - Print this help\n"); exit(0); } -- 2.30.2