summaryrefslogtreecommitdiffstats
path: root/source
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
commitd165a49d860443741e57458b8a819c6d54824fc5 (patch)
treea01b84d9b15dbec292e76052f25628d232a70938 /source
parent58d7a51c5762a444aae6a795a3703269134423d7 (diff)
downloadsamba-d165a49d860443741e57458b8a819c6d54824fc5.tar.gz
samba-d165a49d860443741e57458b8a819c6d54824fc5.tar.xz
samba-d165a49d860443741e57458b8a819c6d54824fc5.zip
Squelch some warnings with more casty-foo.
Diffstat (limited to 'source')
-rw-r--r--source/lib/util_str.c4
1 files 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)