projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35fee08
)
daemon: fix build warning
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 3 Apr 2018 20:00:46 +0000
(22:00 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 3 Apr 2018 20:00:46 +0000
(22:00 +0200)
src/daemon/collectd.c:579:9: warning: declaration shadows a local variable [-Wshadow]
int status;
^
src/daemon/collectd.c:558:7: note: previous declaration is here
int status;
^
src/daemon/collectd.c
patch
|
blob
|
history
diff --git
a/src/daemon/collectd.c
b/src/daemon/collectd.c
index
50aecd9
..
e63c846
100644
(file)
--- a/
src/daemon/collectd.c
+++ b/
src/daemon/collectd.c
@@
-555,8
+555,7
@@
int main(int argc, char **argv) {
plugin_init_ctx();
- int status;
- if ((status = configure_collectd(&config)) != 0)
+ if (configure_collectd(&config) != 0)
exit(EXIT_FAILURE);
#if COLLECT_DAEMON