svn commit: samba r18052 - in branches/SAMBA_4_0/source/lib/replace: .

tridge at samba.org tridge at samba.org
Mon Sep 4 22:58:56 GMT 2006


Author: tridge
Date: 2006-09-04 22:58:55 +0000 (Mon, 04 Sep 2006)
New Revision: 18052

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18052

Log:

discard_const_p() isn't part of the libreplace API, so we can't use it
inside libreplace.

Modified:
   branches/SAMBA_4_0/source/lib/replace/replace.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/replace.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.c	2006-09-04 22:49:30 UTC (rev 18051)
+++ branches/SAMBA_4_0/source/lib/replace/replace.c	2006-09-04 22:58:55 UTC (rev 18052)
@@ -506,7 +506,7 @@
 	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;



More information about the samba-cvs mailing list