summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-04 22:58:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:08 -0500
commitcbae8b2014dc118e876018a0dcf27167724d0143 (patch)
tree9cfb922ae468e68d92c67e49595cbe30022712a7
parenta0202040e2b99117e6307e886fd08401330d20f8 (diff)
downloadsamba-cbae8b2014dc118e876018a0dcf27167724d0143.tar.gz
samba-cbae8b2014dc118e876018a0dcf27167724d0143.tar.bz2
samba-cbae8b2014dc118e876018a0dcf27167724d0143.zip
r18052: discard_const_p() isn't part of the libreplace API, so we can't use it
inside libreplace. (This used to be commit 5745ecdd826c387137a742f32ee3c8f60191a6a7)
-rw-r--r--source4/lib/replace/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c
index 7bfdc3d640..17a04c6239 100644
--- a/source4/lib/replace/replace.c
+++ b/source4/lib/replace/replace.c
@@ -506,7 +506,7 @@ char *rep_strcasestr(const char *haystack, const char *needle)
for (s=haystack;*s;s++) {
if (toupper(*needle) == toupper(*s) &&
strncasecmp(s, needle, nlen) == 0) {
- return discard_const_p(char, s);
+ return (char *)((intptr_t)s);
}
}
return NULL;