[Freeswitch-svn] [commit] r6272 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Wed Nov 14 16:32:56 EST 2007


Author: mikej
Date: Wed Nov 14 16:32:56 2007
New Revision: 6272

Modified:
   freeswitch/trunk/src/switch_xml.cpp

Log:
windows build ugliness

Modified: freeswitch/trunk/src/switch_xml.cpp
==============================================================================
--- freeswitch/trunk/src/switch_xml.cpp	(original)
+++ freeswitch/trunk/src/switch_xml.cpp	Wed Nov 14 16:32:56 2007
@@ -989,7 +989,7 @@
 	int read_fd = -1;
 	switch_size_t cur = 0, ml = 0;
 	char *q, *cmd, buf[2048], ebuf[8192];
-	const char *tcmd, *targ;
+	char *tcmd, *targ;
 
 	if ((read_fd = open(file, O_RDONLY, 0)) < 0) {
 		return read_fd;
@@ -1018,7 +1018,7 @@
 			}
 		}
 
-		if ((tcmd = switch_stristr(bp, "<X-pre-process"))) {
+		if ((tcmd = (char *)switch_stristr(bp, "<X-pre-process"))) {
 			if ((e = strstr(tcmd, "/>"))) {
 				*e += 2;
 				*e = '\0';
@@ -1027,15 +1027,15 @@
 				}
 			}
 			
-			if (!(tcmd = switch_stristr(tcmd, "cmd"))) {
+			if (!(tcmd = (char *)switch_stristr(tcmd, "cmd"))) {
 				continue;
 			}
 
-			if (!(tcmd = switch_stristr(tcmd, "="))) {
+			if (!(tcmd = (char *)switch_stristr(tcmd, "="))) {
 				continue;
 			}
 
-			if (!(tcmd = switch_stristr(tcmd, "\""))) {
+			if (!(tcmd = (char *)switch_stristr(tcmd, "\""))) {
 				continue;
 			}
 			
@@ -1046,15 +1046,15 @@
 				*e++ = '\0';
 			}
 
-			if (!(targ = switch_stristr(e, "data"))) {
+			if (!(targ = (char *)switch_stristr(e, "data"))) {
 				continue;
 			}
 
-			if (!(targ = switch_stristr(targ, "="))) {
+			if (!(targ = (char *)switch_stristr(targ, "="))) {
 				continue;
 			}
 
-			if (!(targ = switch_stristr(targ, "\""))) {
+			if (!(targ = (char *)switch_stristr(targ, "\""))) {
 				continue;
 			}
 



More information about the Freeswitch-svn mailing list