X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollectdmon.c;h=2c1d58978bc175221bf3fd71448b2930c0a4aaab;hb=a82395b57384541152423862bcf44c0db7789641;hp=65271ddd3f424db9c3050979de59e70b328f7483;hpb=f0b5610723ae8962ae264f84210f8bac483bcd20;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"