[telepathy-gabble/master] pubsub.c: use node iteration wrappers
Dafydd Harries
daf at rhydd.org
Mon Jun 29 06:58:31 PDT 2009
---
src/pubsub.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/pubsub.c b/src/pubsub.c
index e6ec305..5adb40d 100644
--- a/src/pubsub.c
+++ b/src/pubsub.c
@@ -56,7 +56,7 @@ gabble_pubsub_event_handler (GabbleConnection *conn, LmMessage *msg,
return FALSE;
}
- if (item_node->children == NULL)
+ if (node_iter (item_node) == NULL)
{
return FALSE;
}
@@ -64,7 +64,9 @@ gabble_pubsub_event_handler (GabbleConnection *conn, LmMessage *msg,
/*
* the namespace of the item is that of the first child of the <item> node
*/
- event_ns = lm_message_node_get_attribute (item_node->children, "xmlns");
+ event_ns = lm_message_node_get_attribute (
+ node_iter_data (node_iter (item_node)), "xmlns");
+
if (event_ns == NULL)
{
return FALSE;
--
1.5.6.5
More information about the telepathy-commits
mailing list