summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorLeon Timmermans <fawaka@gmail.com>2023-03-16 21:30:22 +0100
committerLeon Timmermans <fawaka@gmail.com>2023-03-18 21:11:42 +0100
commit4e0f29b2722407db1a7a662bb226850576c7aca4 (patch)
treec3175b123808ca82a0c25ffc666b77d0c9bcef78 /sv.c
parent260e30211bacb8994ba95f8149e9ca43d093d397 (diff)
downloadperl-4e0f29b2722407db1a7a662bb226850576c7aca4.tar.gz
Mark vtbl argument in sv_unmagicext const
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 4453e52964..eb645c6431 100644
--- a/sv.c
+++ b/sv.c
@@ -5912,7 +5912,7 @@ Perl_sv_magic(pTHX_ SV *const sv, SV *const obj, const int how,
}
static int
-S_sv_unmagicext_flags(pTHX_ SV *const sv, const int type, MGVTBL *vtbl, const U32 flags)
+S_sv_unmagicext_flags(pTHX_ SV *const sv, const int type, const MGVTBL *vtbl, const U32 flags)
{
MAGIC* mg;
MAGIC** mgp;
@@ -5977,7 +5977,7 @@ Removes all magic of type C<type> with the specified C<vtbl> from an SV.
*/
int
-Perl_sv_unmagicext(pTHX_ SV *const sv, const int type, MGVTBL *vtbl)
+Perl_sv_unmagicext(pTHX_ SV *const sv, const int type, const MGVTBL *vtbl)
{
PERL_ARGS_ASSERT_SV_UNMAGICEXT;
return S_sv_unmagicext_flags(aTHX_ sv, type, vtbl, 1);