summaryrefslogtreecommitdiff
path: root/libiberty/fnmatch.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2005-05-24 21:01:33 +0000
committerDJ Delorie <dj@delorie.com>2005-05-24 21:01:33 +0000
commit89c7f9932583efbe420b89437971da682e520b83 (patch)
treed9e972beaab164455b65b67ffd2ca21264c75bd5 /libiberty/fnmatch.c
parent85805b4389018d6ff9416825b7830d3d807ab34e (diff)
downloadgdb-89c7f9932583efbe420b89437971da682e520b83.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/fnmatch.c')
-rw-r--r--libiberty/fnmatch.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libiberty/fnmatch.c b/libiberty/fnmatch.c
index 868a8806d70..fc897be2c6f 100644
--- a/libiberty/fnmatch.c
+++ b/libiberty/fnmatch.c
@@ -124,7 +124,7 @@ fnmatch (const char *pattern, const char *string, int flags)
case '[':
{
/* Nonzero if the sense of the character class is inverted. */
- register int not;
+ register int negate;
if (*n == '\0')
return FNM_NOMATCH;
@@ -133,8 +133,8 @@ fnmatch (const char *pattern, const char *string, int flags)
(n == string || ((flags & FNM_FILE_NAME) && n[-1] == '/')))
return FNM_NOMATCH;
- not = (*p == '!' || *p == '^');
- if (not)
+ negate = (*p == '!' || *p == '^');
+ if (negate)
++p;
c = *p++;
@@ -177,7 +177,7 @@ fnmatch (const char *pattern, const char *string, int flags)
if (c == ']')
break;
}
- if (!not)
+ if (!negate)
return FNM_NOMATCH;
break;
@@ -194,7 +194,7 @@ fnmatch (const char *pattern, const char *string, int flags)
/* XXX 1003.2d11 is unclear if this is right. */
++p;
}
- if (not)
+ if (negate)
return FNM_NOMATCH;
}
break;