Code

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 a5ed065d5340721cd484d60ebaf62c0a3ef0909d..2c1d58978bc175221bf3fd71448b2930c0a4aaab 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)