From d165a49d860443741e57458b8a819c6d54824fc5 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Thu, 13 Nov 2003 17:30:25 +0000 Subject: [PATCH] Squelch some warnings with more casty-foo. --- source/lib/util_str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/util_str.c b/source/lib/util_str.c index b6025a362d3..c244a6b34bf 100644 --- a/source/lib/util_str.c +++ b/source/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) -- 2.11.4.GIT