summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-05-04 23:55:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-07 17:15:45 +0000
commit4373e329bbd25cac77cfe128757db8cbb63c47bb (patch)
tree0f56bb79f020f97f6f453ae711bed9154d9608e6 /xsutils.c
parent892b45be8fb48b672b1d646c00fb1b9bac292d07 (diff)
downloadperl-4373e329bbd25cac77cfe128757db8cbb63c47bb.tar.gz
GCC attributes!
Message-ID: <20050504215540.GA20413@petdance.com> p4raw-id: //depot/perl@24414
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xsutils.c b/xsutils.c
index c37c12bf49..490988bc24 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -57,14 +57,14 @@ static int
modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs)
{
SV *attr;
- char *name;
- STRLEN len;
- bool negated;
int nret;
for (nret = 0 ; numattrs && (attr = *attrlist++); numattrs--) {
- name = SvPV(attr, len);
- if ((negated = (*name == '-'))) {
+ STRLEN len;
+ const char *name = SvPV(attr, len);
+ const bool negated = (*name == '-');
+
+ if (negated) {
name++;
len--;
}