From 7b49e6ac6c1b1d9e3fe0e4498a1def63b9532906 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 17 May 2000 20:54:56 +0000 Subject: Changed name of case_sensitive in mask_match to avaid gcc "shadow global" warning. Jeremy. (This used to be commit 36629d2a934fe61e68f87c5d2faf67158b365ae6) --- source3/lib/util.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/lib/util.c') 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; } -- cgit