collectdmon: mark pidfile as const
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 16:57:26 +0000 (17:57 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 16:57:26 +0000 (17:57 +0100)
src/collectdmon.c

index a5ed065..2c1d589 100644 (file)
@@ -66,8 +66,8 @@
 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;
 
 __attribute__((noreturn))
 static void exit_usage (const char *name)