evolution-data-server r8583 - branches/gnome-2-22/camel/providers/groupwise



Author: psankar
Date: Tue Mar 25 11:39:37 2008
New Revision: 8583
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8583&view=rev

Log:
2008-03-25  Sankar P  <psankar novell com>

	* camel-groupwise-store.c: (groupwise_get_folder),
	(store_refresh_refresh), (groupwise_get_folder_info),
	(groupwise_delete_folder), (groupwise_rename_folder),
	(groupwise_get_trash):
	Avoid erroneous casting and use properly cast variables.
	Code cleanup.




Modified:
   branches/gnome-2-22/camel/providers/groupwise/ChangeLog
   branches/gnome-2-22/camel/providers/groupwise/camel-groupwise-store.c

Modified: branches/gnome-2-22/camel/providers/groupwise/camel-groupwise-store.c
==============================================================================
--- branches/gnome-2-22/camel/providers/groupwise/camel-groupwise-store.c	(original)
+++ branches/gnome-2-22/camel/providers/groupwise/camel-groupwise-store.c	Tue Mar 25 11:39:37 2008
@@ -565,7 +565,7 @@
 
 	CAMEL_SERVICE_REC_LOCK (gw_store, connect_lock);
 
-	if (!camel_groupwise_store_connected ((CamelGroupwiseStore *)store, ex)) {
+	if (!camel_groupwise_store_connected (gw_store, ex)) {
 		CAMEL_SERVICE_REC_UNLOCK (gw_store, connect_lock);
 		return NULL;
 	}
@@ -1059,10 +1059,10 @@
 store_refresh_refresh (CamelSession *session, CamelSessionThreadMsg *msg)
 {
 	struct _store_refresh_msg *m = (struct _store_refresh_msg *)msg;
-	CamelGroupwiseStore *groupwise_store = (CamelGroupwiseStore *)m->store;
+	CamelGroupwiseStore *groupwise_store = CAMEL_GROUPWISE_STORE(m->store);
 
 	CAMEL_SERVICE_REC_LOCK (m->store, connect_lock);
-	if (!camel_groupwise_store_connected ((CamelGroupwiseStore *)m->store, &m->ex))
+	if (!camel_groupwise_store_connected (groupwise_store, &m->ex))
 		goto done;
 	/*Get the folder list and save it here*/
 	groupwise_folders_sync (groupwise_store, &m->ex);
@@ -1146,7 +1146,7 @@
 			} else
 				g_warning ("Could not connect..failure connecting\n");
 		}
-		if (camel_groupwise_store_connected ((CamelGroupwiseStore *)store, ex)) {
+		if (camel_groupwise_store_connected (groupwise_store, ex)) {
 			if (groupwise_store->current_folder)
 				CAMEL_FOLDER_CLASS (CAMEL_OBJECT_GET_CLASS (groupwise_store->current_folder))->sync(groupwise_store->current_folder, FALSE, ex);
 			groupwise_folders_sync (groupwise_store, ex);
@@ -1268,7 +1268,7 @@
 
 	CAMEL_SERVICE_REC_LOCK (store, connect_lock);
 
-	if (!camel_groupwise_store_connected ((CamelGroupwiseStore *)store, ex)) {
+	if (!camel_groupwise_store_connected (groupwise_store, ex)) {
 		CAMEL_SERVICE_REC_UNLOCK (store, connect_lock);
 		return;
 	}
@@ -1311,7 +1311,7 @@
 
 	CAMEL_SERVICE_REC_LOCK (groupwise_store, connect_lock);
 
-	if (!camel_groupwise_store_connected ((CamelGroupwiseStore *)store, ex)) {
+	if (!camel_groupwise_store_connected (groupwise_store, ex)) {
 		CAMEL_SERVICE_REC_UNLOCK (groupwise_store, connect_lock);
 		return;
 	}
@@ -1403,7 +1403,7 @@
 {
 	CamelFolder *folder = camel_store_get_folder(store, "Trash", 0, ex);
 	if (folder) {
-		 char *state = g_build_filename(((CamelGroupwiseStore *)store)->priv->storage_path, "folders", "Trash", "cmeta", NULL);
+		 char *state = g_build_filename((CAMEL_GROUPWISE_STORE(store))->priv->storage_path, "folders", "Trash", "cmeta", NULL);
 
 		camel_object_set(folder, NULL, CAMEL_OBJECT_STATE_FILE, state, NULL);
 		g_free(state);



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