[Nice] [nice/master] Don't declare vars in the middle of blocks, do it c89 style

Olivier Crête olivier.crete at collabora.co.uk
Wed Nov 5 14:02:18 PST 2008


---
 agent/discovery.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/agent/discovery.c b/agent/discovery.c
index c59236d..d560b19 100644
--- a/agent/discovery.c
+++ b/agent/discovery.c
@@ -269,6 +269,8 @@ NiceCandidate *discovery_add_local_host_candidate (
 	 level ufrag/password are used */
       if (nice_udp_socket_factory_make (&agent->udp_socket_factory,
 					udp_socket, address)) {
+	gboolean result;
+
 	priv_attach_stream_component_socket (agent, stream, component,
             udp_socket);
 
@@ -276,7 +278,8 @@ NiceCandidate *discovery_add_local_host_candidate (
         candidate->addr = udp_socket->addr;
         candidate->base_addr = udp_socket->addr;
 
-	gboolean result = priv_add_local_candidate_pruned (component, candidate);
+	result = priv_add_local_candidate_pruned (component, candidate);
+
 	if (result == TRUE) {
 	  GSList *modified_list = g_slist_append (component->sockets, udp_socket);
 	  if (modified_list) {
-- 
1.5.6.5




More information about the Nice mailing list