From: Rodion Vynnychenko Date: Tue, 10 Feb 2015 12:02:51 +0000 (+0200) Subject: Ignore -f when compiled with --disable-daemon X-Git-Tag: collectd-5.12.0~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c04df5303019761b986b0f85fa1e9731a63d22b5;p=thirdparty%2Fcollectd.git Ignore -f when compiled with --disable-daemon --- diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 78d410cad..16c190323 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -308,9 +308,9 @@ static void read_cmdline(int argc, char **argv, struct cmdline_config *config) { /* read options */ while (1) { int c = getopt(argc, argv, - "BhtTC:" + "BhtTfC:" #if COLLECT_DAEMON - "fP:" + "P:" #endif ); @@ -341,6 +341,9 @@ static void read_cmdline(int argc, char **argv, struct cmdline_config *config) { case 'f': config->daemonize = false; break; +#else + case 'f': + break; #endif /* COLLECT_DAEMON */ case 'h': exit_usage(0);