aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-08-06 20:11:40 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2010-08-06 20:11:40 +0800
commita423a3b9b916f2188063f4c3abbf376bb5548b09 (patch)
tree09b7adf4efc08d1c01160feff0e459c973737b29
parent265a072dab29839e7e195470f49e7f9980afc838 (diff)
downloadgsoc2013-empathy-a423a3b9b916f2188063f4c3abbf376bb5548b09.tar
gsoc2013-empathy-a423a3b9b916f2188063f4c3abbf376bb5548b09.tar.gz
gsoc2013-empathy-a423a3b9b916f2188063f4c3abbf376bb5548b09.tar.bz2
gsoc2013-empathy-a423a3b9b916f2188063f4c3abbf376bb5548b09.tar.lz
gsoc2013-empathy-a423a3b9b916f2188063f4c3abbf376bb5548b09.tar.xz
gsoc2013-empathy-a423a3b9b916f2188063f4c3abbf376bb5548b09.tar.zst
gsoc2013-empathy-a423a3b9b916f2188063f4c3abbf376bb5548b09.zip
Add casts to fix constness problems in empathy-import-pidgin.c
-rw-r--r--src/empathy-import-pidgin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 1e9a31713..ab69d417b 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -177,7 +177,7 @@ import_dialog_pidgin_parse_setting (EmpathyImportAccountData *data,
}
if (value)
- g_hash_table_insert (data->settings, item->cm_name, value);
+ g_hash_table_insert (data->settings, (gpointer) item->cm_name, value);
g_free (type);
g_free (content);
@@ -278,13 +278,13 @@ empathy_import_pidgin_load (void)
/* Add the server setting */
value = tp_g_value_slice_new (G_TYPE_STRING);
g_value_set_string (value, nick_server[1]);
- g_hash_table_insert (data->settings, "server", value);
+ g_hash_table_insert (data->settings, (gpointer) "server", value);
}
/* Add the account setting */
value = tp_g_value_slice_new (G_TYPE_STRING);
g_value_set_string (value, username);
- g_hash_table_insert (data->settings, "account", value);
+ g_hash_table_insert (data->settings, (gpointer) "account", value);
g_strfreev (name_resource);
g_strfreev (nick_server);
@@ -302,7 +302,7 @@ empathy_import_pidgin_load (void)
/* Add the password setting */
value = tp_g_value_slice_new (G_TYPE_STRING);
g_value_set_string (value, password);
- g_hash_table_insert (data->settings, "password", value);
+ g_hash_table_insert (data->settings, (gpointer) "password", value);
g_free (password);
}
@@ -336,7 +336,7 @@ empathy_import_pidgin_load (void)
GValue *value;
value = tp_g_value_slice_new (G_TYPE_STRING);
g_value_set_string (value, "");
- g_hash_table_insert (data->settings, "password", value);
+ g_hash_table_insert (data->settings, (gpointer) "password", value);
}
accounts = g_list_prepend (accounts, data);