[Telepathy-commits] [telepathy-salut/master] extract_tube_information: Use tp_strdiff
Alban Crequy
alban.crequy at collabora.co.uk
Tue Nov 25 03:59:23 PST 2008
---
src/salut-tubes-manager.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/salut-tubes-manager.c b/src/salut-tubes-manager.c
index 8cf8420..f899ded 100644
--- a/src/salut-tubes-manager.c
+++ b/src/salut-tubes-manager.c
@@ -221,13 +221,14 @@ extract_tube_information (TpHandleRepoIface *contact_repo,
const gchar *tube_type;
tube_type = gibber_xmpp_node_get_attribute (tube_node, "type");
- if (g_str_equal (tube_type, "stream"))
+ if (!tp_strdiff (tube_type, "stream"))
*type = TP_TUBE_TYPE_STREAM;
- else if (g_str_equal (tube_type, "dbus"))
+ else if (!tp_strdiff (tube_type, "dbus"))
*type = TP_TUBE_TYPE_DBUS;
else
{
- DEBUG ("The <iq><tube> does not have a correct type=.");
+ DEBUG ("The <iq><tube> does not have a correct type: '%s'.",
+ tube_type);
return FALSE;
}
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list