[Telepathy-commits] [telepathy-salut/master] gibber-xmpp-node: fix coding style
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Dec 15 04:13:11 PST 2008
---
lib/gibber/gibber-xmpp-node.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/lib/gibber/gibber-xmpp-node.c b/lib/gibber/gibber-xmpp-node.c
index 85b9124..c073c85 100644
--- a/lib/gibber/gibber-xmpp-node.c
+++ b/lib/gibber/gibber-xmpp-node.c
@@ -61,13 +61,13 @@ gibber_xmpp_node_free (GibberXmppNode *node)
for (l = node->children; l != NULL ; l = l->next)
{
- gibber_xmpp_node_free ((GibberXmppNode *)l->data);
+ gibber_xmpp_node_free ((GibberXmppNode *) l->data);
}
g_slist_free (node->children);
for (l = node->attributes; l != NULL ; l = l->next)
{
- Attribute *a = (Attribute *)l->data;
+ Attribute *a = (Attribute *) l->data;
g_free (a->key);
g_free (a->value);
g_slice_free (Attribute, a);
@@ -85,7 +85,7 @@ gibber_xmpp_node_each_attribute (GibberXmppNode *node,
for (l = node->attributes; l != NULL ; l = l->next)
{
- Attribute *a = (Attribute *)l->data;
+ Attribute *a = (Attribute *) l->data;
if (!func (a->key, a->value, g_quark_to_string (a->ns), user_data))
{
return;
@@ -101,7 +101,7 @@ gibber_xmpp_node_each_child (GibberXmppNode *node,
for (l = node->children; l != NULL ; l = l->next)
{
- GibberXmppNode *n = (GibberXmppNode *)l->data;
+ GibberXmppNode *n = (GibberXmppNode *) l->data;
if (!func (n, user_data))
{
return;
@@ -131,12 +131,12 @@ gibber_xmpp_node_get_attribute_ns (GibberXmppNode *node,
GSList *link;
Tuple search;
- search.key = (gchar *)key;
+ search.key = (gchar *) key;
search.ns = (ns != NULL ? g_quark_from_string (ns) : 0);
link = g_slist_find_custom (node->attributes, &search, attribute_compare);
- return (link == NULL) ? NULL : ((Attribute *)(link->data))->value;
+ return (link == NULL) ? NULL : ((Attribute *) (link->data))->value;
}
const gchar *
@@ -183,7 +183,7 @@ static gint
node_compare_child (gconstpointer a, gconstpointer b)
{
const GibberXmppNode *node = (const GibberXmppNode *)a;
- Tuple *target = (Tuple *)b;
+ Tuple *target = (Tuple *) b;
if (target->ns != 0 && target->ns != node->ns)
{
@@ -205,7 +205,7 @@ gibber_xmpp_node_get_child_ns (GibberXmppNode *node, const gchar *name,
link = g_slist_find_custom (node->children, &t, node_compare_child);
- return (link == NULL) ? NULL : (GibberXmppNode *)(link->data);
+ return (link == NULL) ? NULL : (GibberXmppNode *) (link->data);
}
GibberXmppNode *
--
1.5.6.5
More information about the Telepathy-commits
mailing list