[telepathy-gabble/master] jingle-transport-rawudp.c: use node iteration wrappers
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Jun 29 02:41:40 PDT 2009
---
src/jingle-transport-rawudp.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/jingle-transport-rawudp.c b/src/jingle-transport-rawudp.c
index d3e217f..a75b35b 100644
--- a/src/jingle-transport-rawudp.c
+++ b/src/jingle-transport-rawudp.c
@@ -222,7 +222,7 @@ parse_candidates (GabbleJingleTransportIface *obj,
GabbleJingleTransportRawUdp *t = GABBLE_JINGLE_TRANSPORT_RAWUDP (obj);
GabbleJingleTransportRawUdpPrivate *priv = t->priv;
GList *candidates = NULL;
- LmMessageNode *node;
+ NodeIter i;
DEBUG ("called");
@@ -232,8 +232,9 @@ parse_candidates (GabbleJingleTransportIface *obj,
return;
}
- for (node = transport_node->children; node; node = node->next)
+ for (i = node_iter (transport_node); i; i = node_iter_next (i))
{
+ LmMessageNode *node = node_iter_data (i);
const gchar *id, *ip, *str;
guint port, gen, component = 1;
JingleCandidate *c;
@@ -276,7 +277,7 @@ parse_candidates (GabbleJingleTransportIface *obj,
candidates = g_list_append (candidates, c);
}
- if (node != NULL)
+ if (i != NULL)
{
DEBUG ("not all nodes were processed, reporting error");
/* rollback these */
--
1.5.6.5
More information about the telepathy-commits
mailing list