From 3e51067b534a577729b643e3987e4d0a3c45c853 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 4 Dec 2007 23:06:12 +0000 Subject: [PATCH] code before declaration. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6506 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 364366e96b..c2124fc0f8 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -365,8 +365,9 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s x = 0; while(!ilen) { + switch_status_t status; ilen = len; - switch_status_t status = switch_socket_recvfrom(rtp_session->from_addr, new_sock, 0, (void *) i, &ilen); + status = switch_socket_recvfrom(rtp_session->from_addr, new_sock, 0, (void *) i, &ilen); if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK) { break;