X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectdmon.c;h=2c1d58978bc175221bf3fd71448b2930c0a4aaab;hb=9c1acd10074995f6ec95eca6664c4bce4b7d7c1b;hp=65271ddd3f424db9c3050979de59e70b328f7483;hpb=b76f88c5bafa82e3c939eb65c13acd431e07cc01;p=collectd.git diff --git a/src/collectdmon.c b/src/collectdmon.c index 65271ddd..2c1d5897 100644 --- a/src/collectdmon.c +++ b/src/collectdmon.c @@ -66,10 +66,11 @@ static int loop = 0; static int restart = 0; -static char *pidfile = NULL; -static pid_t collectd_pid = 0; +static const char *pidfile = NULL; +static pid_t collectd_pid = 0; -static void exit_usage (char *name) +__attribute__((noreturn)) +static void exit_usage (const char *name) { printf ("Usage: %s [-- ]\n"