From a423a3b9b916f2188063f4c3abbf376bb5548b09 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 6 Aug 2010 13:11:40 +0100 Subject: Add casts to fix constness problems in empathy-import-pidgin.c --- src/empathy-import-pidgin.c | 10 +++++----- 1 file 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); -- cgit v1.2.3