From: Ruben Kerkhof Date: Tue, 3 Apr 2018 20:00:46 +0000 (+0200) Subject: daemon: fix build warning X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e1a95f29eda4b43face57852544431d5f61f4b96;p=collectd.git daemon: fix build warning 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; ^ --- diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 50aecd93..e63c8466 100644 --- 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