summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-22 16:39:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:11 -0500
commit73d1950c010777605b1294397002cc7aa011add0 (patch)
tree0ce5688fd41b8c4a897c73ded62ab49e46fbf390 /source3/lib/util_str.c
parentd44a7379323cc44f49ac1f5e57ce1b8a9d6c3f31 (diff)
downloadsamba-73d1950c010777605b1294397002cc7aa011add0.tar.gz
samba-73d1950c010777605b1294397002cc7aa011add0.tar.bz2
samba-73d1950c010777605b1294397002cc7aa011add0.zip
r5956: more compile warngin fixes from the Mr. Mader
(This used to be commit f3f315b14d261fa56ab040db036a6f858ac06e65)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 6ec43a963b..86015b355a 100644
--- a/source3/lib/util_str.c
+++ b/source3/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)