diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-17 20:54:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-17 20:54:56 +0000 |
commit | 36629d2a934fe61e68f87c5d2faf67158b365ae6 (patch) | |
tree | 4aeb5afd9152da1c8053650fe413fdee80ca1037 /source/lib/util.c | |
parent | aa1a4f46da9584240cd6cee6fb652aa73e77015c (diff) | |
download | samba-36629d2a934fe61e68f87c5d2faf67158b365ae6.tar.gz samba-36629d2a934fe61e68f87c5d2faf67158b365ae6.tar.xz samba-36629d2a934fe61e68f87c5d2faf67158b365ae6.zip |
Changed name of case_sensitive in mask_match to avaid gcc "shadow global"
warning.
Jeremy.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 36373e98478..e5aa20a972a 100644 --- a/source/lib/util.c +++ b/source/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; } |