From 0b5019ffc9821d4734524a819ad431700f7ea8f0 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Thu, 13 Nov 2003 17:30:25 +0000 Subject: Squelch some warnings with more casty-foo. (This used to be commit d165a49d860443741e57458b8a819c6d54824fc5) --- source3/lib/util_str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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) -- cgit