aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-06-05 20:48:29 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-09 19:18:28 +0800
commitb0e26e9c5f13c710c7677959cc457158206befe1 (patch)
treeb4a7791f26ff0928e862d9d44b3b81e52cd986e0 /mail
parentf9f7c3efa62b85e8f54e59382fef9ef8c80df6e6 (diff)
downloadgsoc2013-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')
-rw-r--r--mail/em-account-editor.c14
-rw-r--r--mail/em-inline-filter.c16
2 files changed, 15 insertions, 15 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);
diff --git a/mail/em-inline-filter.c b/mail/em-inline-filter.c
index efc05d73e3..9067205970 100644
--- a/mail/em-inline-filter.c
+++ b/mail/em-inline-filter.c
@@ -40,8 +40,8 @@ static void em_inline_filter_class_init (EMInlineFilterClass *klass);
static void em_inline_filter_init (CamelObject *object);
static void em_inline_filter_finalize (CamelObject *object);
-static void emif_filter(CamelMimeFilter *f, gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace);
-static void emif_complete(CamelMimeFilter *f, gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace);
+static void emif_filter(CamelMimeFilter *f, const gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace);
+static void emif_complete(CamelMimeFilter *f, const gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace);
static void emif_reset(CamelMimeFilter *f);
static CamelMimeFilterClass *parent_class = NULL;
@@ -338,21 +338,21 @@ emif_scan(CamelMimeFilter *f, gchar *in, gsize len, gint final)
}
static void
-emif_filter(CamelMimeFilter *f, gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace)
+emif_filter(CamelMimeFilter *f, const gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace)
{
- emif_scan(f, in, len, FALSE);
+ emif_scan(f, (gchar*)in, len, FALSE);
- *out = in;
+ *out = (gchar*)in;
*outlen = len;
*outprespace = prespace;
}
static void
-emif_complete(CamelMimeFilter *f, gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace)
+emif_complete(CamelMimeFilter *f, const gchar *in, gsize len, gsize prespace, gchar **out, gsize *outlen, gsize *outprespace)
{
- emif_scan(f, in, len, TRUE);
+ emif_scan(f, (gchar*)in, len, TRUE);
- *out = in;
+ *out = (gchar*)in;
*outlen = len;
*outprespace = prespace;
}