From: Ruben Kerkhof Date: Sat, 5 Mar 2016 17:08:24 +0000 (+0100) Subject: perl plugin: mark file variable as const X-Git-Tag: collectd-5.6.0~411 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=43d7245c20930161284e5784fbf115d1221a5951;p=collectd.git perl plugin: mark file variable as const --- diff --git a/src/perl.c b/src/perl.c index c25bfe89..36c1e267 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; - char *file = __FILE__; + HV *stash = NULL; + SV *tmp = NULL; + const char *file = __FILE__; int i = 0;