]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
build tweak
authorMichael Jerris <mike@jerris.com>
Thu, 24 Jul 2008 08:11:34 +0000 (08:11 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 24 Jul 2008 08:11:34 +0000 (08:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9160 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 684b214b59799fa2aba1fa6d1dcb80d5e2da6c55..4ca30138930d6fe69e7b3e9d0ce5b299d7e30f92 100644 (file)
@@ -2099,8 +2099,8 @@ static switch_status_t event_chat_send(char *proto, char *from, char *to, char *
                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);
                        }
index 5a0adbedc1330c988480ba554d7b25e613e0c428..b146e2eab7523c02ea6bda129be7b820333a07ab 100644 (file)
@@ -487,15 +487,15 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
                                                                        
                                                                        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 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
                                                                                        }
 
                                                                                        clen -= (int) mlen;
-                                                                                       ptr += mlen;
+                                                                                       p += mlen;
                                                                                }
 
                                                                                switch_event_add_body(*event, "%s", body);