X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcollectdmon.c;h=089e52b66c3dbeb167727017006a5b5d13f18173;hp=9040f8d9d2bd7c737e798b674525e0e48f11983e;hb=ec51ddee94fa2ba1e01fe0e336ccc9c190a198ff;hpb=936c450a86c841eea89888c8550c9118fae90c25 diff --git a/src/collectdmon.c b/src/collectdmon.c index 9040f8d9..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; @@ -386,5 +386,3 @@ int main(int argc, char **argv) { free(collectd_argv); return 0; } /* main */ - -/* vim: set sw=4 ts=4 tw=78 noexpandtab : */