From b788e9e0f84a324b68cbfc8168a1b5610c921389 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 3 Apr 2018 21:55:49 +0200 Subject: [PATCH] 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) { ^ --- src/daemon/collectd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0