Code

Revert "perl plugin: mark file variable as const"
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 22:55:20 +0000 (23:55 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 22:55:20 +0000 (23:55 +0100)
It breaks the build on RHEL5

This reverts commit 43d7245c20930161284e5784fbf115d1221a5951.

src/perl.c

index 36c1e26743a3c84baa9da5dcf4899d03eef94d66..c25bfe897870a8a83457c1c60e91b59c6767aa3e 100644 (file)
@@ -2179,9 +2179,9 @@ static MGVTBL g_interval_vtbl = {
 /* bootstrap the Collectd module */
 static void xs_init (pTHX)
 {
-       HV         *stash = NULL;
-       SV         *tmp   = NULL;
-       const char *file  = __FILE__;
+       HV   *stash = NULL;
+       SV   *tmp   = NULL;
+       char *file  = __FILE__;
 
        int i = 0;