From: Ruben Kerkhof Date: Sat, 5 Mar 2016 22:55:20 +0000 (+0100) Subject: Revert "perl plugin: mark file variable as const" X-Git-Tag: collectd-5.6.0~404 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=02a5cb5242f8f3b0b50b9702aea3900a6740e054;p=collectd.git Revert "perl plugin: mark file variable as const" It breaks the build on RHEL5 This reverts commit 43d7245c20930161284e5784fbf115d1221a5951. --- diff --git a/src/perl.c b/src/perl.c index 36c1e267..c25bfe89 100644 --- a/src/perl.c +++ b/src/perl.c @@ -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;