projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35678ea
)
daemon: make function static
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 3 Apr 2018 19:55:49 +0000
(21:55 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 3 Apr 2018 19:55:49 +0000
(21:55 +0200)
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
patch
|
blob
|
history
diff --git
a/src/daemon/collectd.c
b/src/daemon/collectd.c
index
727876b
..
859cf91
100644
(file)
--- 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;