[Freeswitch-svn] [commit] r9160 - in freeswitch/trunk/src/mod: applications/mod_dptools event_handlers/mod_event_socket

Freeswitch SVN mikej at freeswitch.org
Thu Jul 24 04:11:34 EDT 2008


Author: mikej
Date: Thu Jul 24 04:11:34 2008
New Revision: 9160

Modified:
   freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
   freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c

Log:
build tweak

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	Thu Jul 24 04:11:34 2008
@@ -2099,8 +2099,8 @@
 		if (hint) switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Hint", "%s", hint);
 		if (body) switch_event_add_body(event, "%s", body);
 		if (to) { 
-			switch_event_add_header(event, SWITCH_STACK_BOTTOM, "To", "%s", to);
 			const char *v;
+			switch_event_add_header(event, SWITCH_STACK_BOTTOM, "To", "%s", to);
 			if ((v = switch_core_get_variable(to))) {
 				switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Command", "%s", v);
 			}

Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	Thu Jul 24 04:11:34 2008
@@ -487,15 +487,15 @@
 									
 									if (clen > 0) {
 										char *body;
-										char *ptr;
+										char *p;
 										
 										switch_zmalloc(body, clen + 1);
 
-										ptr = body;
+										p = body;
 										while(clen > 0) {
 											mlen = clen;
 											
-											status = switch_socket_recv(listener->sock, ptr, &mlen);
+											status = switch_socket_recv(listener->sock, p, &mlen);
 
 											if (!SWITCH_STATUS_IS_BREAK(status) && status != SWITCH_STATUS_SUCCESS) {
 												return SWITCH_STATUS_FALSE;
@@ -507,7 +507,7 @@
 											}
 
 											clen -= (int) mlen;
-											ptr += mlen;
+											p += mlen;
 										}
 
 										switch_event_add_body(*event, "%s", body);



More information about the Freeswitch-svn mailing list