[evolution-couchdb] Fixed several compilation warnings



commit 35a713e4ee496bd7b067223c75fdbcb1a5adf519
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Fri Jul 9 12:16:06 2010 +0200

    Fixed several compilation warnings

 addressbook/e-book-backend-couchdb.c |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/addressbook/e-book-backend-couchdb.c b/addressbook/e-book-backend-couchdb.c
index fb3d707..49c292e 100644
--- a/addressbook/e-book-backend-couchdb.c
+++ b/addressbook/e-book-backend-couchdb.c
@@ -51,7 +51,7 @@ contact_from_couch_document (CouchdbDocument *document)
 {
 	EContact *contact;
 	char *str;
-	GSList *list, *sl;
+	GSList *list;
 	GList *attr_list;
 	CouchdbStructField *app_annotations;
 	EContactName contact_name;
@@ -87,11 +87,11 @@ contact_from_couch_document (CouchdbDocument *document)
 
 	e_contact_set (contact, E_CONTACT_UID, (const gpointer) couchdb_document_get_id (document));
 
-	contact_name.family = couchdb_document_contact_get_last_name (COUCHDB_DOCUMENT_CONTACT (document));
-	contact_name.given = couchdb_document_contact_get_first_name (COUCHDB_DOCUMENT_CONTACT (document));
-	contact_name.additional = couchdb_document_contact_get_middle_name (COUCHDB_DOCUMENT_CONTACT (document));
-	contact_name.prefixes = couchdb_document_contact_get_title (COUCHDB_DOCUMENT_CONTACT (document));
-	contact_name.suffixes = couchdb_document_contact_get_suffix (COUCHDB_DOCUMENT_CONTACT (document));
+	contact_name.family = (char *) couchdb_document_contact_get_last_name (COUCHDB_DOCUMENT_CONTACT (document));
+	contact_name.given = (char *) couchdb_document_contact_get_first_name (COUCHDB_DOCUMENT_CONTACT (document));
+	contact_name.additional = (char *) couchdb_document_contact_get_middle_name (COUCHDB_DOCUMENT_CONTACT (document));
+	contact_name.prefixes = (char *) couchdb_document_contact_get_title (COUCHDB_DOCUMENT_CONTACT (document));
+	contact_name.suffixes = (char *) couchdb_document_contact_get_suffix (COUCHDB_DOCUMENT_CONTACT (document));
 	e_contact_set (contact, E_CONTACT_NAME, (const gpointer) &contact_name);
 
 	str = e_contact_name_to_string (&contact_name);
@@ -709,7 +709,6 @@ couch_document_from_contact (EBookBackendCouchDB *couchdb_backend, EContact *con
 	GList *attr_list, *al;
 	const char *str;
 	CouchdbDocumentContact *document;
-	gint i;
 	CouchdbStructField *postal_address, *app_annotations;
 	EContactName *contact_name;
 
@@ -1271,7 +1270,6 @@ e_book_backend_couchdb_get_contact (EBookBackend *backend,
 				    guint32 opid,
 				    const char *id)
 {
-	GError *error = NULL;
 	EContact *contact;
 	EBookBackendCouchDB *couchdb_backend = E_BOOK_BACKEND_COUCHDB (backend);
 
@@ -1299,7 +1297,6 @@ e_book_backend_couchdb_get_contact_list (EBookBackend *backend,
 					 guint32 opid, const char *query)
 {
 	GList *doc_list, *contacts = NULL;
-	GError *error = NULL;
 	EBookBackendCouchDB *couchdb_backend = E_BOOK_BACKEND_COUCHDB (backend);
 
 	/* Get the list of documents from cache */
@@ -1397,7 +1394,6 @@ e_book_backend_couchdb_get_supported_fields (EBookBackend *backend,
 					     guint32 opid)
 {
 	GList *fields = NULL;
-	gint i;
 
 	/* Basic fields */
 	fields = g_list_append (fields, g_strdup (e_contact_field_name (E_CONTACT_UID)));
@@ -1491,7 +1487,7 @@ e_book_backend_couchdb_cancel_operation (EBookBackend *backend, EDataBook *book)
 }
 
 static void
-e_book_backend_couchdb_set_mode (EBookBackend *backend, int mode)
+e_book_backend_couchdb_set_mode (EBookBackend *backend, GNOME_Evolution_Addressbook_BookMode mode)
 {
 }
 



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