[evolution-exchange] More whitespace cleanup.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-exchange] More whitespace cleanup.
- Date: Sat, 18 Jul 2009 17:17:21 +0000 (UTC)
commit 6e8e03424f558a6b301aeecb1f59f86633cba48e
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jul 18 13:17:08 2009 -0400
More whitespace cleanup.
addressbook/e-book-backend-db-cache.c | 6 +++---
addressbook/e-book-backend-exchange.c | 4 ++--
addressbook/e-book-backend-gal.c | 20 ++++++++++----------
calendar/e-cal-backend-exchange-calendar.c | 2 +-
calendar/e-cal-backend-exchange-tasks.c | 6 +++---
calendar/e-cal-backend-exchange.c | 4 ++--
camel/camel-exchange-folder.c | 4 ++--
camel/camel-exchange-journal.c | 2 +-
camel/camel-exchange-summary.c | 2 +-
mail/mail-stub-exchange.c | 2 +-
storage/exchange-config-listener.c | 4 ++--
11 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/addressbook/e-book-backend-db-cache.c b/addressbook/e-book-backend-db-cache.c
index 3a98329..8ced250 100644
--- a/addressbook/e-book-backend-db-cache.c
+++ b/addressbook/e-book-backend-db-cache.c
@@ -336,7 +336,7 @@ e_book_backend_db_cache_get_contacts (DB *db, const gchar *query)
memset(&uid_dbt, 0, sizeof(uid_dbt));
db_error = dbc->c_get(dbc, &uid_dbt, &vcard_dbt, DB_FIRST);
- while(db_error == 0) {
+ while (db_error == 0) {
if (vcard_dbt.data && !strncmp (vcard_dbt.data, "BEGIN:VCARD", 11))
if (e_book_backend_sexp_match_vcard(sexp, vcard_dbt.data)) {
contact = e_contact_new_from_vcard (vcard_dbt.data);
@@ -346,7 +346,7 @@ e_book_backend_db_cache_get_contacts (DB *db, const gchar *query)
}
db_error = dbc->c_close (dbc);
- if(db_error != 0)
+ if (db_error != 0)
g_warning ("db->c_close failed with %d", db_error);
if (sexp)
@@ -449,7 +449,7 @@ e_book_backend_db_cache_is_populated (DB *db)
vcard_dbt.flags = DB_DBT_MALLOC;
db_error = db->get (db, NULL, &uid_dbt, &vcard_dbt, 0);
- if (db_error != 0){
+ if (db_error != 0) {
return FALSE;
}
else {
diff --git a/addressbook/e-book-backend-exchange.c b/addressbook/e-book-backend-exchange.c
index 239a991..84cb973 100644
--- a/addressbook/e-book-backend-exchange.c
+++ b/addressbook/e-book-backend-exchange.c
@@ -2642,7 +2642,7 @@ e_book_backend_exchange_authenticate_user (EBookBackend *backend,
/* FIXME : Check for failures */
if (!(bepriv->ctx = exchange_account_get_context (account))) {
exchange_account_set_online (account);
- if(!exchange_account_connect (account, password, &result)) {
+ if (!exchange_account_connect (account, password, &result)) {
e_data_book_respond_authenticate_user (book, opid, GNOME_Evolution_Addressbook_AuthenticationFailed);
return;
}
@@ -2654,7 +2654,7 @@ e_book_backend_exchange_authenticate_user (EBookBackend *backend,
g_thread_create ((GThreadFunc) update_cache,
be, FALSE, NULL);
}
- else if (bepriv->is_writable || bepriv->marked_for_offline){
+ else if (bepriv->is_writable || bepriv->marked_for_offline) {
/* for personal books we always cache*/
g_thread_create ((GThreadFunc) build_cache, be, FALSE, NULL);
}
diff --git a/addressbook/e-book-backend-gal.c b/addressbook/e-book-backend-gal.c
index 172bb14..f4d98db 100644
--- a/addressbook/e-book-backend-gal.c
+++ b/addressbook/e-book-backend-gal.c
@@ -297,7 +297,7 @@ gal_connect (EBookBackendGAL *bl)
}
static gboolean
-ldap_reconnect (EBookBackendGAL *bl, EDataBookView *book_view, LDAP **ldap, gint status){
+ldap_reconnect (EBookBackendGAL *bl, EDataBookView *book_view, LDAP **ldap, gint status) {
if (!ldap || !*ldap)
return FALSE;
@@ -1190,7 +1190,7 @@ build_query (EBookBackendGAL *bl, const gchar *query, const gchar *ldap_filter,
sexp = e_sexp_new();
- for(i=0;i<sizeof(symbols)/sizeof(symbols[0]);i++) {
+ for (i=0;i<sizeof(symbols)/sizeof(symbols[0]);i++) {
e_sexp_add_function(sexp, 0, (gchar *) symbols[i].name,
symbols[i].func, NULL);
}
@@ -1531,7 +1531,7 @@ build_contact_from_entry (EBookBackendGAL *bl, LDAPMessage *e, GList **existing_
/* call populate function */
info->populate_contact_func (contact, member_info, bl, NULL);
- for(i=0; i<count; i++) {
+ for (i=0; i<count; i++) {
g_free (*(member_info+i));
}
g_free (member_info);
@@ -2045,7 +2045,7 @@ parse_page_control(
rc = ldap_parse_result( ld, result,
&err, NULL, NULL, NULL, &ctrl, 0 );
- if( rc != LDAP_SUCCESS ) {
+ if ( rc != LDAP_SUCCESS ) {
ldap_perror(ld, "ldap_parse_result");
exit( EXIT_FAILURE );
}
@@ -2054,7 +2054,7 @@ parse_page_control(
fprintf( stderr, "Error: %s (%d)\n", ldap_err2string(err), err );
}
- if( ctrl ) {
+ if ( ctrl ) {
/* Parse the control value
* searchResult ::= SEQUENCE {
* size INTEGER (0..maxInt),
@@ -2073,13 +2073,13 @@ parse_page_control(
ber_dupbv( cookie, &servercookie );
(void) ber_free( ber, 1 );
- if( tag == LBER_ERROR ) {
+ if ( tag == LBER_ERROR ) {
fprintf( stderr,
"Paged results response control could not be decoded.\n");
return EXIT_FAILURE;
}
- if( entriesLeft < 0 ) {
+ if ( entriesLeft < 0 ) {
fprintf( stderr,
"Invalid entries estimate in paged results response.\n");
return EXIT_FAILURE;
@@ -2129,7 +2129,7 @@ static gint dosearch(
sctrls, cctrls, timeout, size /*LDAP_NO_LIMIT*/, &msgid );
g_mutex_unlock (bl->priv->ldap_lock);
- if( rc != LDAP_SUCCESS ) {
+ if ( rc != LDAP_SUCCESS ) {
return( rc );
}
@@ -2147,7 +2147,7 @@ static gint dosearch(
EContact *contact;
const gchar *uid;
- switch( ldap_msgtype( msg ) ) {
+ switch ( ldap_msgtype( msg ) ) {
case LDAP_RES_SEARCH_ENTRY:
count ++;
g_mutex_unlock (bl->priv->ldap_lock);
@@ -2352,7 +2352,7 @@ authenticate_user (EBookBackend *backend,
/* FIXME : Check for failures */
if (!exchange_account_get_context (account)) {
exchange_account_set_online (account);
- if(!exchange_account_connect (account, password, &result)) {
+ if (!exchange_account_connect (account, password, &result)) {
d(printf("%s:%s: failed\n", G_STRLOC, G_STRFUNC));
e_data_book_respond_authenticate_user (book, opid, GNOME_Evolution_Addressbook_AuthenticationFailed);
return;
diff --git a/calendar/e-cal-backend-exchange-calendar.c b/calendar/e-cal-backend-exchange-calendar.c
index 9b8c2db..c125393 100644
--- a/calendar/e-cal-backend-exchange-calendar.c
+++ b/calendar/e-cal-backend-exchange-calendar.c
@@ -1138,7 +1138,7 @@ modify_object_with_href (ECalBackendSync *backend, EDataCal *cal,
e_cal_backend_exchange_cache_lock (cbex);
ecomp = get_exchange_comp (cbex, comp_uid);
- if (!ecomp){
+ if (!ecomp) {
icalcomponent_free (icalcomp);
e_cal_backend_exchange_cache_unlock (cbex);
return GNOME_Evolution_Calendar_ObjectNotFound;
diff --git a/calendar/e-cal-backend-exchange-tasks.c b/calendar/e-cal-backend-exchange-tasks.c
index 5adcf41..6f5d68c 100644
--- a/calendar/e-cal-backend-exchange-tasks.c
+++ b/calendar/e-cal-backend-exchange-tasks.c
@@ -734,7 +734,7 @@ get_changed_tasks (ECalBackendExchange *cbex)
/* Set CLASSIFICATION */
if ((str = e2k_properties_get_prop (result->props,
- E2K_PR_MAPI_SENSITIVITY))){
+ E2K_PR_MAPI_SENSITIVITY))) {
if (!strcmp (str, "0"))
e_cal_component_set_classification (ecal,
E_CAL_COMPONENT_CLASS_PUBLIC);
@@ -1157,7 +1157,7 @@ create_task_object (ECalBackendSync *backend, EDataCal *cal,
update_props (comp, &props);
e_cal_component_commit_sequence (comp);
*calobj = e_cal_component_get_as_string (comp);
- if (!*calobj){
+ if (!*calobj) {
g_object_unref (comp);
g_free (from_name);
g_free (from_addr);
@@ -1299,7 +1299,7 @@ modify_task_object (ECalBackendSync *backend, EDataCal *cal,
comp_str = e_cal_component_get_as_string (new_comp);
icalcomp = icalparser_parse_string (comp_str);
g_free (comp_str);
- if (E2K_HTTP_STATUS_IS_SUCCESSFUL (status)){
+ if (E2K_HTTP_STATUS_IS_SUCCESSFUL (status)) {
status = put_body(new_comp, e2kctx, NULL, ecalbexcomp->href, from_name, from_addr,
attach_body_crlf, boundary, NULL);
if (E2K_HTTP_STATUS_IS_SUCCESSFUL (status)) {
diff --git a/calendar/e-cal-backend-exchange.c b/calendar/e-cal-backend-exchange.c
index 8334b50..031ded6 100644
--- a/calendar/e-cal-backend-exchange.c
+++ b/calendar/e-cal-backend-exchange.c
@@ -1648,7 +1648,7 @@ check_change_type (gpointer key, gpointer value, gpointer data)
e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (icomp));
calobj = e_cal_component_get_as_string (comp);
- switch (e_xmlhash_compare (change_data->ehash, uid, calobj)){
+ switch (e_xmlhash_compare (change_data->ehash, uid, calobj)) {
case E_XMLHASH_STATUS_SAME:
break;
case E_XMLHASH_STATUS_NOT_FOUND:
@@ -1936,7 +1936,7 @@ build_msg ( ECalBackendExchange *cbex, ECalComponent *comp, const gchar *subject
e_cal_component_get_uid (comp, &uid);
e_cal_component_get_attachment_list (comp, &attach_list);
- for (l = attach_list; l; l = l->next){
+ for (l = attach_list; l; l = l->next) {
gchar *mime_type;
if (!strncmp ((gchar *)l->data, "file://", 7)) {
diff --git a/camel/camel-exchange-folder.c b/camel/camel-exchange-folder.c
index 6936860..359990c 100644
--- a/camel/camel-exchange-folder.c
+++ b/camel/camel-exchange-folder.c
@@ -184,7 +184,7 @@ refresh_info (CamelFolder *folder, CamelException *ex)
CAMEL_STUB_ARG_RETURN,
CAMEL_STUB_ARG_UINT32, &unread_count,
CAMEL_STUB_ARG_UINT32, &visible_count,
- CAMEL_STUB_ARG_END)){
+ CAMEL_STUB_ARG_END)) {
g_print("\n Error syncing up the counts");
}
@@ -453,7 +453,7 @@ get_message (CamelFolder *folder, const gchar *uid, CamelException *ex)
camel_object_unref (CAMEL_OBJECT (filtered_stream));
camel_mime_message_set_source (msg, exch->source);
- if(camel_medium_get_header (CAMEL_MEDIUM (msg), "Sender")) {
+ if (camel_medium_get_header (CAMEL_MEDIUM (msg), "Sender")) {
list_headers = g_strsplit (MAILING_LIST_HEADERS, " ", 0);
if (list_headers) {
gint i = 0;
diff --git a/camel/camel-exchange-journal.c b/camel/camel-exchange-journal.c
index 0a0c4a1..d8b2a9d 100644
--- a/camel/camel-exchange-journal.c
+++ b/camel/camel-exchange-journal.c
@@ -556,7 +556,7 @@ camel_exchange_journal_transfer (CamelExchangeJournal *exchange_journal, CamelEx
type = find_real_source_for_message (source_folder, &real_source_folder,
&real_uid, delete_original);
- if(delete_original) {
+ if (delete_original) {
camel_exchange_folder_remove_message (source_folder, original_uid);
}
diff --git a/camel/camel-exchange-summary.c b/camel/camel-exchange-summary.c
index 8bccf0a..0924e29 100644
--- a/camel/camel-exchange-summary.c
+++ b/camel/camel-exchange-summary.c
@@ -434,7 +434,7 @@ info_set_flags(CamelMessageInfo *info, guint32 flags, guint32 set)
}
}
else {
- if(folder && info->uid) {
+ if (folder && info->uid) {
if ((flags & set & CAMEL_MESSAGE_DELETED) &&
check_for_trash (folder)) {
/* FIXME: should add a separate journal entry for this case. */ ;
diff --git a/mail/mail-stub-exchange.c b/mail/mail-stub-exchange.c
index 1372920..dcaea46 100644
--- a/mail/mail-stub-exchange.c
+++ b/mail/mail-stub-exchange.c
@@ -2875,7 +2875,7 @@ get_folder_info_data (MailStub *stub, const gchar *top, guint32 store_flags,
if (!strcmp (type, "mail")) {
unread_count = e_folder_get_unread_count (folder);
}
- else if(!folder_flags) {
+ else if (!folder_flags) {
continue;
}
break;
diff --git a/storage/exchange-config-listener.c b/storage/exchange-config-listener.c
index 024e318..2c336ac 100644
--- a/storage/exchange-config-listener.c
+++ b/storage/exchange-config-listener.c
@@ -335,7 +335,7 @@ migrate_account_esource (EAccount *account,
sources = e_source_group_peek_sources (group);
found_group = TRUE;
- for(; sources != NULL; sources = g_slist_next (sources)) {
+ for (; sources != NULL; sources = g_slist_next (sources)) {
source = E_SOURCE (sources->data);
ex_set_relative_uri (source, url_string + strlen ("exchange://"));
@@ -470,7 +470,7 @@ requires_relogin (gchar *current_url, gchar *new_url)
break;
}
}
- else if (current_param_val || new_param_val){
+ else if (current_param_val || new_param_val) {
/* check for added or deleted parameter */
relogin = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]