From cbae8b2014dc118e876018a0dcf27167724d0143 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Sep 2006 22:58:55 +0000 Subject: 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) --- source4/lib/replace/replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit