[evolution-groupwise] Fix compiler warnings
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-groupwise] Fix compiler warnings
- Date: Mon, 10 Oct 2011 10:55:15 +0000 (UTC)
commit 6e346f99881938529f16bd750a83ea490adf00ca
Author: Milan Crha <mcrha redhat com>
Date: Mon Oct 10 12:54:51 2011 +0200
Fix compiler warnings
src/calendar/e-cal-backend-groupwise.c | 1 -
src/plugins/proxy-login.c | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-groupwise.c b/src/calendar/e-cal-backend-groupwise.c
index 091b82f..b77171d 100644
--- a/src/calendar/e-cal-backend-groupwise.c
+++ b/src/calendar/e-cal-backend-groupwise.c
@@ -1776,7 +1776,6 @@ update_from_server (ECalBackendGroupwise *cbgw,
return stat;
}
- comp = g_object_ref ( (ECalComponent *) list->data );
/* convert items into components and add them to the cache */
for (i = 0, tmp = list; tmp; tmp = g_list_next (tmp), i++) {
ECalComponent *e_cal_comp;
diff --git a/src/plugins/proxy-login.c b/src/plugins/proxy-login.c
index c88524d..100334d 100644
--- a/src/plugins/proxy-login.c
+++ b/src/plugins/proxy-login.c
@@ -423,12 +423,12 @@ proxy_login_add_new_store (CamelStore *store,
{
EShell *shell;
EShellBackend *shell_backend;
- EMailSession *session;
+ EMailBackend *mail_backend;
gint permissions = GPOINTER_TO_INT(g_object_get_data ((GObject *)account, "permissions"));
shell = e_shell_get_default ();
shell_backend = e_shell_get_backend_by_name (shell, "mail");
- session = e_mail_backend_get_session (E_MAIL_BACKEND (shell_backend));
+ mail_backend = E_MAIL_BACKEND (shell_backend);
if (store == NULL)
return;
@@ -437,7 +437,7 @@ proxy_login_add_new_store (CamelStore *store,
store->mode &= !CAMEL_STORE_WRITE;
store->flags |= CAMEL_STORE_PROXY;
- e_mail_store_add (session, store);
+ e_mail_store_add (mail_backend, store);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]