diff options
author | Milan Crha <mcrha@redhat.com> | 2009-06-05 20:48:29 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-09 19:18:28 +0800 |
commit | b0e26e9c5f13c710c7677959cc457158206befe1 (patch) | |
tree | b4a7791f26ff0928e862d9d44b3b81e52cd986e0 /mail/em-account-editor.c | |
parent | f9f7c3efa62b85e8f54e59382fef9ef8c80df6e6 (diff) | |
download | gsoc2013-evolution-b0e26e9c5f13c710c7677959cc457158206befe1.tar.gz gsoc2013-evolution-b0e26e9c5f13c710c7677959cc457158206befe1.tar.zst gsoc2013-evolution-b0e26e9c5f13c710c7677959cc457158206befe1.zip |
Fix even more compiler warnings and disable one for format strings
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r-- | mail/em-account-editor.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 99938fadce..81c3bc634a 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -1440,7 +1440,7 @@ emae_refresh_providers(EMAccountEditor *emae, EMAccountEditorService *service) current[len] = 0; } } else { - current = g_strdup("imap"); + current = (gchar *) "imap"; } store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_POINTER); @@ -2277,7 +2277,7 @@ section: case CAMEL_PROVIDER_CONF_CHECKBOX: w = emae_option_toggle(service, url, entries[i].text, entries[i].name, atoi(entries[i].value)); gtk_table_attach((GtkTable *)parent, w, 0, 2, row, row+1, GTK_EXPAND|GTK_FILL, 0, 0, 0); - g_hash_table_insert(extra, entries[i].name, w); + g_hash_table_insert(extra, (gpointer)entries[i].name, w); if (depw) depl = g_slist_prepend(depl, w); row++; @@ -2298,7 +2298,7 @@ section: } row++; /* FIXME: this is another hack for exchange/groupwise connector */ - g_hash_table_insert(item->extra_table, entries[i].name, w); + g_hash_table_insert(item->extra_table, (gpointer)entries[i].name, w); break; case CAMEL_PROVIDER_CONF_CHECKSPIN: w = emae_option_checkspin(service, url, entries[i].name, entries[i].text, entries[i].value); @@ -3079,7 +3079,7 @@ em_account_editor_construct(EMAccountEditor *emae, EAccount *account, em_account for (i=0;entries && entries[i].type != CAMEL_PROVIDER_CONF_END;i++) { struct _receive_options_item *item; - gchar *name = entries[i].name; + const gchar *name = entries[i].name; gint myindex = index; if (entries[i].type != CAMEL_PROVIDER_CONF_SECTION_START @@ -3094,7 +3094,7 @@ em_account_editor_construct(EMAccountEditor *emae, EAccount *account, em_account item = g_malloc0(sizeof(*item)); item->item.type = E_CONFIG_SECTION_TABLE; item->item.path = g_strdup_printf("20.receive_options/%02d.%s", myindex, name?name:"unnamed"); - item->item.label = entries[i].text; + item->item.label = g_strdup (entries[i].text); l = g_slist_prepend(l, item); @@ -3102,12 +3102,12 @@ em_account_editor_construct(EMAccountEditor *emae, EAccount *account, em_account item->item.type = E_CONFIG_ITEM_TABLE; item->item.path = g_strdup_printf("20.receive_options/%02d.%s/80.camelitem", myindex, name?name:"unnamed"); item->item.factory = emae_receive_options_extra_item; - item->item.user_data = entries[i].name; + item->item.user_data = g_strdup (entries[i].name); l = g_slist_prepend(l, item); index += 10; - g_hash_table_insert(have, entries[i].name, have); + g_hash_table_insert(have, (gpointer)entries[i].name, have); } } g_hash_table_destroy(have); |