summaryrefslogtreecommitdiffstats
path: root/source/lib/util_str.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-22 16:39:09 +0000
committerGerald Carter <jerry@samba.org>2005-03-22 16:39:09 +0000
commit8bc0a48d8bbd96bac02a384402faaa75e0e22957 (patch)
treea89e8ac8837b44ed79ef82d7d07785712472f51a /source/lib/util_str.c
parent81fa01591cd25875aaae927dfbc583b5e9b7128b (diff)
downloadsamba-8bc0a48d8bbd96bac02a384402faaa75e0e22957.tar.gz
samba-8bc0a48d8bbd96bac02a384402faaa75e0e22957.tar.xz
samba-8bc0a48d8bbd96bac02a384402faaa75e0e22957.zip
r5956: more compile warngin fixes from the Mr. Mader
Diffstat (limited to 'source/lib/util_str.c')
-rw-r--r--source/lib/util_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/util_str.c b/source/lib/util_str.c
index 6ec43a963b3..86015b355ae 100644
--- a/source/lib/util_str.c
+++ b/source/lib/util_str.c
@@ -363,16 +363,16 @@ BOOL strisnormal(const char *s, int case_default)
NOTE: oldc and newc must be 7 bit characters
**/
-void string_replace(pstring s,char oldc,char newc)
+void string_replace( pstring s, char oldc, char newc )
{
- unsigned char *p;
+ char *p;
/* this is quite a common operation, so we want it to be
fast. We optimise for the ascii case, knowing that all our
supported multi-byte character sets are ascii-compatible
(ie. they match for the first 128 chars) */
- for (p = (unsigned char *)s; *p; p++) {
+ for (p = s; *p; p++) {
if (*p & 0x80) /* mb string - slow path. */
break;
if (*p == oldc)