evolution-data-server r8506 - in trunk: . calendar calendar/backends/contacts calendar/backends/groupwise camel/providers/groupwise camel/providers/imap camel/providers/pop3 libdb/dbm



Author: pchen
Date: Mon Feb 18 13:40:57 2008
New Revision: 8506
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8506&view=rev

Log:
Fix for some warnings from opensuse downstream.



Modified:
   trunk/ChangeLog
   trunk/calendar/ChangeLog
   trunk/calendar/backends/contacts/e-cal-backend-contacts.c
   trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.h
   trunk/camel/providers/groupwise/ChangeLog
   trunk/camel/providers/groupwise/camel-groupwise-folder.c
   trunk/camel/providers/imap/ChangeLog
   trunk/camel/providers/imap/camel-imap-store.c
   trunk/camel/providers/pop3/ChangeLog
   trunk/camel/providers/pop3/camel-pop3-store.c
   trunk/libdb/dbm/dbm.c

Modified: trunk/calendar/backends/contacts/e-cal-backend-contacts.c
==============================================================================
--- trunk/calendar/backends/contacts/e-cal-backend-contacts.c	(original)
+++ trunk/calendar/backends/contacts/e-cal-backend-contacts.c	Mon Feb 18 13:40:57 2008
@@ -389,7 +389,7 @@
 static struct icaltimetype
 cdate_to_icaltime (EContactDate *cdate)
 {
-	struct icaltimetype ret;
+	struct icaltimetype ret = icaltime_null_time();
 
 	ret.year = cdate->year;
 	ret.month = cdate->month;

Modified: trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.h
==============================================================================
--- trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.h	(original)
+++ trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.h	Mon Feb 18 13:40:57 2008
@@ -44,6 +44,7 @@
  * Items management
  */
 EGwItem       *e_gw_item_new_from_cal_component (const char *container, ECalBackendGroupwise *cbgw, ECalComponent *comp);
+EGwItem  *e_gw_item_new_for_delegate_from_cal (ECalBackendGroupwise *cbgw, ECalComponent *comp);
 ECalComponent *e_gw_item_to_cal_component (EGwItem *item, ECalBackendGroupwise *cbgw);
 void          e_gw_item_set_changes (EGwItem *item, EGwItem *cached_item);
 

Modified: trunk/camel/providers/groupwise/camel-groupwise-folder.c
==============================================================================
--- trunk/camel/providers/groupwise/camel-groupwise-folder.c	(original)
+++ trunk/camel/providers/groupwise/camel-groupwise-folder.c	Mon Feb 18 13:40:57 2008
@@ -2090,7 +2090,7 @@
 	CamelGroupwiseStore *gw_store= CAMEL_GROUPWISE_STORE(source->parent_store);
 	CamelOfflineStore *offline = (CamelOfflineStore *) destination->parent_store;
 	CamelGroupwiseStorePrivate  *priv = gw_store->priv;
-	EGwConnectionStatus status;
+	EGwConnectionStatus status = E_GW_CONNECTION_STATUS_OK;
 	EGwConnection *cnc;
 	CamelFolderChangeInfo *changes = NULL;
 

Modified: trunk/camel/providers/imap/camel-imap-store.c
==============================================================================
--- trunk/camel/providers/imap/camel-imap-store.c	(original)
+++ trunk/camel/providers/imap/camel-imap-store.c	Mon Feb 18 13:40:57 2008
@@ -702,6 +702,9 @@
 	}
 
 #ifdef HAVE_SSL
+	/* as soon as we send a STARTTLS command, all hope is lost of a clean QUIT if problems arise */
+	clean_quit = FALSE;
+	
 	if (!(store->capabilities & IMAP_CAPABILITY_STARTTLS)) {
 		camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
 			_("Failed to connect to IMAP server %s in secure mode: %s"),
@@ -710,9 +713,6 @@
 		goto exception;
 	}
 
-	/* as soon as we send a STARTTLS command, all hope is lost of a clean QUIT if problems arise */
-	clean_quit = FALSE;
-
 	response = camel_imap_command (store, NULL, ex, "STARTTLS");
 	if (!response) {
 		camel_object_unref (store->istream);

Modified: trunk/camel/providers/pop3/camel-pop3-store.c
==============================================================================
--- trunk/camel/providers/pop3/camel-pop3-store.c	(original)
+++ trunk/camel/providers/pop3/camel-pop3-store.c	Mon Feb 18 13:40:57 2008
@@ -219,6 +219,9 @@
 	}
 
 #ifdef HAVE_SSL
+	/* as soon as we send a STLS command, all hope is lost of a clean QUIT if problems arise */
+	clean_quit = FALSE;
+
 	if (!(store->engine->capa & CAMEL_POP3_CAP_STLS)) {
 		camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
 			_("Failed to connect to POP server %s in secure mode: %s"),
@@ -226,9 +229,6 @@
 		goto stls_exception;
 	}
 
-	/* as soon as we send a STLS command, all hope is lost of a clean QUIT if problems arise */
-	clean_quit = FALSE;
-
 	pc = camel_pop3_engine_command_new (store->engine, 0, NULL, NULL, "STLS\r\n");
 	while (camel_pop3_engine_iterate (store->engine, NULL) > 0)
 		;

Modified: trunk/libdb/dbm/dbm.c
==============================================================================
--- trunk/libdb/dbm/dbm.c	(original)
+++ trunk/libdb/dbm/dbm.c	Mon Feb 18 13:40:57 2008
@@ -128,7 +128,8 @@
 
 	if (__cur_db == NULL) {
 		__db_no_open();
-		item.dptr = 0;
+		item.dptr = NULL;
+		item.dsize = 0;
 		return (item);
 	}
 	return (dbm_fetch(__cur_db, key));
@@ -141,7 +142,8 @@
 
 	if (__cur_db == NULL) {
 		__db_no_open();
-		item.dptr = 0;
+		item.dptr = NULL;
+		item.dsize = 0;
 		return (item);
 	}
 	return (dbm_firstkey(__cur_db));
@@ -157,7 +159,8 @@
 
 	if (__cur_db == NULL) {
 		__db_no_open();
-		item.dptr = 0;
+		item.dptr = NULL;
+		item.dsize = 0;
 		return (item);
 	}
 	return (dbm_nextkey(__cur_db));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]