X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcollectdmon.c;h=089e52b66c3dbeb167727017006a5b5d13f18173;hp=4a7d1a6b6fcfc33a43000edf0177b25806b6e856;hb=ec51ddee94fa2ba1e01fe0e336ccc9c190a198ff;hpb=c7c89cc9618ef25cc9b0861ac2782cb1a5d6782d diff --git a/src/collectdmon.c b/src/collectdmon.c index 4a7d1a6b..089e52b6 100644 --- a/src/collectdmon.c +++ b/src/collectdmon.c @@ -71,11 +71,11 @@ #define WCOREDUMP(s) 0 #endif /* ! WCOREDUMP */ -static int loop = 0; -static int restart = 0; +static int loop; +static int restart; -static const char *pidfile = NULL; -static pid_t collectd_pid = 0; +static const char *pidfile; +static pid_t collectd_pid; __attribute__((noreturn)) static void exit_usage(const char *name) { printf("Usage: %s [-- ]\n" @@ -246,8 +246,8 @@ static void log_status(int status) { static void check_respawn(void) { time_t t = time(NULL); - static time_t timestamp = 0; - static int counter = 0; + static time_t timestamp; + static int counter; if ((t - 120) < timestamp) ++counter;