]> git.0d.be Git - empathy.git/commitdiff
src/empathy-import-pidgin: cast strings to (xmlChar *) when needed
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 20 Oct 2009 14:54:06 +0000 (15:54 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 20 Oct 2009 15:01:09 +0000 (16:01 +0100)
src/empathy-import-pidgin.c

index 31dbbdd68c26e65cb594871217badddb928221c9..87910b96a9e1d15fb6dfa2c66fd9af0aed946d6d 100644 (file)
@@ -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"))