summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-11-13 17:30:25 +0000
committerRichard Sharpe <sharpe@samba.org>2003-11-13 17:30:25 +0000
commit0b5019ffc9821d4734524a819ad431700f7ea8f0 (patch)
tree7f36e7ff75cc64a0c65b38182a6785bc9fff4492 /source3
parente6994778ec082fab422051028ddbdd81b9ae0275 (diff)
downloadsamba-0b5019ffc9821d4734524a819ad431700f7ea8f0.tar.gz
samba-0b5019ffc9821d4734524a819ad431700f7ea8f0.tar.bz2
samba-0b5019ffc9821d4734524a819ad431700f7ea8f0.zip
Squelch some warnings with more casty-foo.
(This used to be commit d165a49d860443741e57458b8a819c6d54824fc5)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index b6025a362d..c244a6b34b 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1194,7 +1194,7 @@ char *strchr_m(const char *src, char c)
for (s = src; *s && !(((unsigned char)s[0]) & 0x80); s++) {
if (*s == c)
- return s;
+ return (char *)s;
}
if (!*s)
@@ -1242,7 +1242,7 @@ char *strrchr_m(const char *s, char c)
break;
}
/* No - we have a match ! */
- return cp;
+ return (char *)cp;
}
} while (cp-- != s);
if (!got_mb)