summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-17 20:54:56 +0000
committerJeremy Allison <jra@samba.org>2000-05-17 20:54:56 +0000
commit7b49e6ac6c1b1d9e3fe0e4498a1def63b9532906 (patch)
treee2a95fef75d5e6640bf0a5aebe1f5586ac58b4f5 /source3/lib/util.c
parent819c15449882a0c08689a4565bf0b31f756f05bd (diff)
downloadsamba-7b49e6ac6c1b1d9e3fe0e4498a1def63b9532906.tar.gz
samba-7b49e6ac6c1b1d9e3fe0e4498a1def63b9532906.tar.bz2
samba-7b49e6ac6c1b1d9e3fe0e4498a1def63b9532906.zip
Changed name of case_sensitive in mask_match to avaid gcc "shadow global"
warning. Jeremy. (This used to be commit 36629d2a934fe61e68f87c5d2faf67158b365ae6)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 36373e9847..e5aa20a972 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1978,16 +1978,14 @@ BOOL ms_has_wild(char *s)
/*******************************************************************
a wrapper that handles case sensitivity and the special handling
of the ".." name
-
- case_sensitive is a boolean
*******************************************************************/
-BOOL mask_match(char *string, char *pattern, BOOL case_sensitive)
+BOOL mask_match(char *string, char *pattern, BOOL is_case_sensitive)
{
fstring p2, s2;
if (strcmp(string,"..") == 0) string = ".";
if (strcmp(pattern,".") == 0) return False;
- if (case_sensitive) {
+ if (is_case_sensitive) {
return ms_fnmatch(pattern, string) == 0;
}