summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-05-09 17:45:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-09 20:07:14 +0000
commitf54cb97a39f1a5849851e77a33524dfca2644cf5 (patch)
tree63ac7dcf435b959ee157bc3bd9c11eb775192034 /gv.c
parenta0981a788197c6d427ceaf558d0dc8713c7737b3 (diff)
downloadperl-f54cb97a39f1a5849851e77a33524dfca2644cf5.tar.gz
attributes-two.patch, the next batch
Message-ID: <20050509154518.GA18273@petdance.com> p4raw-id: //depot/perl@24431
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gv.c b/gv.c
index ea3de43992..0f3fa2467d 100644
--- a/gv.c
+++ b/gv.c
@@ -34,8 +34,8 @@ Perl stores its global variables.
#define PERL_IN_GV_C
#include "perl.h"
-const char S_autoload[] = "AUTOLOAD";
-const STRLEN S_autolen = sizeof(S_autoload)-1;
+static const char S_autoload[] = "AUTOLOAD";
+static const STRLEN S_autolen = sizeof(S_autoload)-1;
GV *
Perl_gv_AVadd(pTHX_ register GV *gv)
@@ -111,7 +111,7 @@ Perl_gv_init(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, int multi)
dVAR;
register GP *gp;
const bool doproto = SvTYPE(gv) > SVt_NULL;
- char *proto = (doproto && SvPOK(gv)) ? SvPVX(gv) : NULL;
+ const char * const proto = (doproto && SvPOK(gv)) ? SvPVX(gv) : NULL;
sv_upgrade((SV*)gv, SVt_PVGV);
if (SvLEN(gv)) {