[empathy] src/empathy-import-pidgin: cast strings to (xmlChar *) when needed



commit 1f9ec7bc79c1aa3cc002f0afaf0f518f0b6ab455
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Oct 20 15:54:06 2009 +0100

    src/empathy-import-pidgin: cast strings to (xmlChar *) when needed

 src/empathy-import-pidgin.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 31dbbdd..87910b9 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -105,11 +105,12 @@ import_dialog_pidgin_parse_setting (EmpathyImportAccountData *data,
   gchar *tag_name;
   gchar *type = NULL;
   gchar *content;
-  gint i;
+  guint i;
   GValue *value = NULL;
 
   /* We can't do anything if the setting don't have a name */
-  tag_name = (gchar *) xmlGetProp (setting, PIDGIN_ACCOUNT_TAG_NAME);
+  tag_name = (gchar *) xmlGetProp (setting,
+      (xmlChar *) PIDGIN_ACCOUNT_TAG_NAME);
   if (!tag_name)
     return;
 
@@ -129,7 +130,7 @@ import_dialog_pidgin_parse_setting (EmpathyImportAccountData *data,
   if (!item)
     return;
 
-  type = (gchar *) xmlGetProp (setting, PIDGIN_SETTING_PROP_TYPE);
+  type = (gchar *) xmlGetProp (setting, (xmlChar *) PIDGIN_SETTING_PROP_TYPE);
   content = (gchar *) xmlNodeGetContent (setting);
 
   if (!tp_strdiff (type, "bool"))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]