From: Ruben Kerkhof Date: Tue, 3 Apr 2018 19:55:49 +0000 (+0200) Subject: daemon: make function static X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b788e9e0f84a324b68cbfc8168a1b5610c921389;p=collectd.git daemon: make function static Fixes a build warning: src/daemon/collectd.c:452:6: warning: no previous prototype for function 'read_cmdline' [-Wmissing-prototypes] void read_cmdline(int argc, char **argv, struct cmdline_config *config) { ^ --- diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 727876bc..859cf910 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -449,7 +449,7 @@ struct cmdline_config { _Bool daemonize; }; -void read_cmdline(int argc, char **argv, struct cmdline_config *config) { +static void read_cmdline(int argc, char **argv, struct cmdline_config *config) { /* read options */ while (1) { int c;