From e0da56a84808c522bc7324b5d636f1cbd317a2c5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 7 May 2004 18:37:47 +0000 Subject: r570: Remove lots of globals to handle case issues - move them to connection struct entries (as they should have been from the start). Jerry, once you've cut over to 3.0.4 release branch I'll add this to 3.0 also. - Jerry cut over :-). Jeremy. (This used to be commit 578a508509d21226ad3332fc54c3ab54cd8ae452) --- source3/lib/util_unistr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/lib/util_unistr.c') diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 005f10a4c0..bfb5288826 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -506,13 +506,13 @@ BOOL strupper_w(smb_ucs2_t *s) /******************************************************************* convert a string to "normal" form ********************************************************************/ -void strnorm_w(smb_ucs2_t *s) + +void strnorm_w(smb_ucs2_t *s, int case_default) { - extern int case_default; - if (case_default == CASE_UPPER) - strupper_w(s); - else - strlower_w(s); + if (case_default == CASE_UPPER) + strupper_w(s); + else + strlower_w(s); } int strcmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b) -- cgit