[Nice] [nice/master] Make the if/else-ness clear

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


---
 agent/agent.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/agent/agent.c b/agent/agent.c
index 9b6fbbe..f44e792 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -631,10 +631,10 @@ void agent_signal_component_state_change (NiceAgent *agent, guint stream_id, gui
 guint64
 agent_candidate_pair_priority (NiceAgent *agent, NiceCandidate *local, NiceCandidate *remote)
 {
-  if (agent->controlling_mode == TRUE)
+  if (agent->controlling_mode)
     return nice_candidate_pair_priority (local->priority, remote->priority);
-
-  return nice_candidate_pair_priority (remote->priority, local->priority);
+  else
+    return nice_candidate_pair_priority (remote->priority, local->priority);
 }
 
 static gboolean
-- 
1.5.6.5




More information about the Nice mailing list