summaryrefslogtreecommitdiff
path: root/universal.c
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2018-11-26 12:14:51 -0500
committerJames E Keenan <jkeenan@cpan.org>2018-11-26 12:14:51 -0500
commit419f8ba5087ee6baa2281aa8c355fc66a0fe3851 (patch)
tree43fc11c009c0a2e1e0288e3c0886ab0975d49f79 /universal.c
parent20ccb10a08f448e264358925aacec1e2d05c6402 (diff)
downloadperl-419f8ba5087ee6baa2281aa8c355fc66a0fe3851.tar.gz
Rename global variable to prevent confusion with local
Per: https://lgtm.com/projects/g/Perl/perl5/alerts/?mode=tree&ruleFocus=2157860312
Diffstat (limited to 'universal.c')
-rw-r--r--universal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/universal.c b/universal.c
index 2262939b8d..c1b5dd4b14 100644
--- a/universal.c
+++ b/universal.c
@@ -995,7 +995,7 @@ struct xsub_details {
const char *proto;
};
-static const struct xsub_details details[] = {
+static const struct xsub_details these_details[] = {
{"UNIVERSAL::isa", XS_UNIVERSAL_isa, NULL},
{"UNIVERSAL::can", XS_UNIVERSAL_can, NULL},
{"UNIVERSAL::DOES", XS_UNIVERSAL_DOES, NULL},
@@ -1075,8 +1075,8 @@ void
Perl_boot_core_UNIVERSAL(pTHX)
{
static const char file[] = __FILE__;
- const struct xsub_details *xsub = details;
- const struct xsub_details *end = C_ARRAY_END(details);
+ const struct xsub_details *xsub = these_details;
+ const struct xsub_details *end = C_ARRAY_END(these_details);
do {
newXS_flags(xsub->name, xsub->xsub, file, xsub->proto, 0);