summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-07-14 18:02:55 +0200
committerNicholas Clark <nick@ccl4.org>2011-07-14 18:02:55 +0200
commit0e1b3a4b35c4f6798b244c5b82edcf759e9e6806 (patch)
tree2beb5a0417915271052687c97a3e82b2a90f10dc /pad.c
parent548e9a3a0c4e2b14151b17a2c96eedd7683fcc77 (diff)
downloadperl-0e1b3a4b35c4f6798b244c5b82edcf759e9e6806.tar.gz
Make prototypes and declarations for Perl_pad_add_name_{pv,pvn,sv} agree.
cc76b5cc1552a605 added all 3 functions to the API, but declared prototypes with const U32 flags, whilst the definitions had that parameter non-const. Some compilers issue warnings about this inconsistency.
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index 7e9dcc0127..52bf354b27 100644
--- a/pad.c
+++ b/pad.c
@@ -605,7 +605,7 @@ instead of a string/length pair.
PADOFFSET
Perl_pad_add_name_pv(pTHX_ const char *name,
- U32 flags, HV *typestash, HV *ourstash)
+ const U32 flags, HV *typestash, HV *ourstash)
{
PERL_ARGS_ASSERT_PAD_ADD_NAME_PV;
return pad_add_name_pvn(name, strlen(name), flags, typestash, ourstash);