From fc3021c2d35f1f3a20ba3dc589d52fe622e18cec Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 28 May 2009 13:32:38 -0400 Subject: Whitespace cleanup. --- camel/camel-address.h | 4 +- camel/camel-db.c | 22 ++++---- camel/camel-disco-diary.c | 4 +- camel/camel-folder-summary.c | 8 +-- camel/camel-folder-summary.h | 8 +-- camel/camel-folder-thread.c | 2 +- camel/camel-folder.c | 4 +- camel/camel-folder.h | 2 +- camel/camel-gpg-context.c | 8 +-- camel/camel-iconv.c | 4 +- camel/camel-index.h | 12 ++--- camel/camel-medium.c | 2 +- camel/camel-mime-filter-basic.c | 2 +- camel/camel-mime-filter-bestenc.h | 2 +- camel/camel-mime-part.h | 14 +++--- camel/camel-mime-utils.c | 14 +++--- camel/camel-net-utils.c | 18 +++---- camel/camel-net-utils.h | 2 +- camel/camel-object.c | 12 ++--- camel/camel-offline-folder.c | 2 +- camel/camel-search-sql-sexp.c | 2 +- camel/camel-search-sql.c | 4 +- camel/camel-seekable-stream.h | 2 +- camel/camel-session.h | 2 +- camel/camel-smime-context.c | 6 +-- camel/camel-store.h | 4 +- camel/camel-text-index.h | 2 +- camel/camel-vee-folder.c | 6 +-- camel/camel-vee-summary.c | 2 +- camel/db-scrap-tools/db.c | 58 +++++++++++----------- camel/providers/groupwise/camel-groupwise-folder.c | 2 +- .../providers/groupwise/camel-groupwise-provider.c | 2 +- camel/providers/groupwise/camel-groupwise-store.c | 6 +-- .../providers/groupwise/camel-groupwise-summary.c | 2 +- .../groupwise/camel-groupwise-transport.c | 2 +- camel/providers/groupwise/camel-groupwise-utils.c | 2 +- camel/providers/imap/camel-imap-folder.c | 38 +++++++------- camel/providers/imap/camel-imap-journal.c | 2 +- camel/providers/imap4/camel-imap4-command.c | 4 +- camel/providers/imap4/camel-imap4-stream.c | 8 +-- camel/providers/imapp/camel-imapp-driver.h | 2 +- camel/providers/imapp/camel-imapp-engine.h | 4 +- camel/providers/imapp/camel-imapp-stream.h | 4 +- camel/providers/local/camel-maildir-folder.h | 2 +- camel/providers/local/camel-mbox-summary.c | 2 +- camel/providers/local/camel-mh-folder.h | 2 +- camel/providers/nntp/camel-nntp-folder.c | 4 +- camel/providers/nntp/camel-nntp-store.c | 20 ++++---- camel/providers/nntp/camel-nntp-stream.h | 4 +- camel/providers/pop3/camel-pop3-engine.h | 2 +- camel/providers/pop3/camel-pop3-stream.h | 4 +- camel/tests/folder/test3.c | 2 +- camel/tests/message/test1.c | 2 +- camel/tests/misc/utf7.c | 2 +- 54 files changed, 179 insertions(+), 179 deletions(-) (limited to 'camel') diff --git a/camel/camel-address.h b/camel/camel-address.h index f584a6d49..b4824d104 100644 --- a/camel/camel-address.h +++ b/camel/camel-address.h @@ -60,9 +60,9 @@ CamelAddress *camel_address_new (void); CamelAddress *camel_address_new_clone (const CamelAddress *addr); int camel_address_length (CamelAddress *addr); -int camel_address_decode (CamelAddress *addr, const char *raw); +int camel_address_decode (CamelAddress *addr, const char *raw); char *camel_address_encode (CamelAddress *addr); -int camel_address_unformat (CamelAddress *addr, const char *raw); +int camel_address_unformat (CamelAddress *addr, const char *raw); char *camel_address_format (CamelAddress *addr); int camel_address_cat (CamelAddress *dest, const CamelAddress *source); diff --git a/camel/camel-db.c b/camel/camel-db.c index 8ed6580f6..86fd43d00 100644 --- a/camel/camel-db.c +++ b/camel/camel-db.c @@ -339,10 +339,10 @@ init_sqlite_vfs (void) } #define d(x) if (camel_debug("sqlite")) x -#define START(stmt) if (camel_debug("dbtime")) { g_print ("\n===========\nDB SQL operation [%s] started\n", stmt); if (!cdb->priv->timer) { cdb->priv->timer = g_timer_new (); } else { g_timer_reset(cdb->priv->timer);} } -#define END if (camel_debug("dbtime")) { g_timer_stop (cdb->priv->timer); g_print ("DB Operation ended. Time Taken : %f\n###########\n", g_timer_elapsed (cdb->priv->timer, NULL)); } -#define STARTTS(stmt) if (camel_debug("dbtimets")) { g_print ("\n===========\nDB SQL operation [%s] started\n", stmt); if (!cdb->priv->timer) { cdb->priv->timer = g_timer_new (); } else { g_timer_reset(cdb->priv->timer);} } -#define ENDTS if (camel_debug("dbtimets")) { g_timer_stop (cdb->priv->timer); g_print ("DB Operation ended. Time Taken : %f\n###########\n", g_timer_elapsed (cdb->priv->timer, NULL)); } +#define START(stmt) if (camel_debug("dbtime")) { g_print ("\n===========\nDB SQL operation [%s] started\n", stmt); if (!cdb->priv->timer) { cdb->priv->timer = g_timer_new (); } else { g_timer_reset(cdb->priv->timer);} } +#define END if (camel_debug("dbtime")) { g_timer_stop (cdb->priv->timer); g_print ("DB Operation ended. Time Taken : %f\n###########\n", g_timer_elapsed (cdb->priv->timer, NULL)); } +#define STARTTS(stmt) if (camel_debug("dbtimets")) { g_print ("\n===========\nDB SQL operation [%s] started\n", stmt); if (!cdb->priv->timer) { cdb->priv->timer = g_timer_new (); } else { g_timer_reset(cdb->priv->timer);} } +#define ENDTS if (camel_debug("dbtimets")) { g_timer_stop (cdb->priv->timer); g_print ("DB Operation ended. Time Taken : %f\n###########\n", g_timer_elapsed (cdb->priv->timer, NULL)); } struct _CamelDBPrivate { @@ -592,15 +592,15 @@ end: static int count_cb (void *data, int argc, char **argv, char **azColName) { - int i; + int i; - for(i=0; ilock); CAMEL_DB_RELEASE_SQLITE_MEMORY; - if (ret != SQLITE_OK) { - d(g_warning ("Error in select statement '%s' [%s].\n", stmt, errmsg)); + if (ret != SQLITE_OK) { + d(g_warning ("Error in select statement '%s' [%s].\n", stmt, errmsg)); if (ex) camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, errmsg); sqlite3_free (errmsg); errmsg = NULL; - } + } if (errmsg) { sqlite3_free (errmsg); diff --git a/camel/camel-disco-diary.c b/camel/camel-disco-diary.c index 1b2277268..84c2faa75 100644 --- a/camel/camel-disco-diary.c +++ b/camel/camel-disco-diary.c @@ -423,11 +423,11 @@ camel_disco_diary_new (CamelDiscoStore *store, const char *filename, CamelExcept /* Note that the linux man page says: a+ Open for reading and appending (writing at end of file). The - file is created if it does not exist. The stream is positioned + file is created if it does not exist. The stream is positioned at the end of the file. However, c99 (which glibc uses?) says: a+ append; open or create text file for update, writing at - end-of-file + end-of-file So we must seek ourselves. */ diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 43bd35e5e..0501defad 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -127,8 +127,8 @@ static CamelMessageContentInfo * content_info_new_from_header(CamelFolderSummary static CamelMessageContentInfo * content_info_new_from_parser(CamelFolderSummary *, CamelMimeParser *); static CamelMessageContentInfo * content_info_new_from_message(CamelFolderSummary *s, CamelMimePart *mp); static CamelMessageContentInfo * content_info_load(CamelFolderSummary *, FILE *); -static int content_info_save(CamelFolderSummary *, FILE *, CamelMessageContentInfo *); -static void content_info_free(CamelFolderSummary *, CamelMessageContentInfo *); +static int content_info_save(CamelFolderSummary *, FILE *, CamelMessageContentInfo *); +static void content_info_free(CamelFolderSummary *, CamelMessageContentInfo *); static int save_message_infos_to_db (CamelFolderSummary *s, gboolean fresh_mir, CamelException *ex); static int camel_read_mir_callback (void * ref, int ncol, char ** cols, char ** name); @@ -3405,7 +3405,7 @@ message_info_to_db (CamelFolderSummary *s, CamelMessageInfo *info) record->followup_flag = (char *) camel_pstring_strdup(camel_message_info_user_tag(info, "follow-up")); record->followup_completed_on = (char *) camel_pstring_strdup(camel_message_info_user_tag(info, "completed-on")); - record->followup_due_by = (char *) camel_pstring_strdup(camel_message_info_user_tag(info, "due-by")); + record->followup_due_by = (char *) camel_pstring_strdup(camel_message_info_user_tag(info, "due-by")); tmp = g_string_new (NULL); if (mi->references) { @@ -3533,7 +3533,7 @@ message_info_free(CamelFolderSummary *s, CamelMessageInfo *info) #ifndef USE_GSLICE g_free(mi); #else - g_slice_free1 (s->message_info_size, mi); + g_slice_free1 (s->message_info_size, mi); #endif #endif else diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h index 5079ed288..0cc74c915 100644 --- a/camel/camel-folder-summary.h +++ b/camel/camel-folder-summary.h @@ -277,7 +277,7 @@ struct _CamelFolderSummaryClass { CamelMessageInfo * (*message_info_new_from_parser)(CamelFolderSummary *, CamelMimeParser *); CamelMessageInfo * (*message_info_new_from_message)(CamelFolderSummary *, CamelMimeMessage *); CamelMessageInfo * (*message_info_load)(CamelFolderSummary *, FILE *); - int (*message_info_save)(CamelFolderSummary *, FILE *, CamelMessageInfo *); + int (*message_info_save)(CamelFolderSummary *, FILE *, CamelMessageInfo *); int (*meta_message_info_save)(CamelFolderSummary *, FILE *, FILE *, CamelMessageInfo *); void (*message_info_free)(CamelFolderSummary *, CamelMessageInfo *); @@ -288,8 +288,8 @@ struct _CamelFolderSummaryClass { CamelMessageContentInfo * (*content_info_new_from_parser)(CamelFolderSummary *, CamelMimeParser *); CamelMessageContentInfo * (*content_info_new_from_message)(CamelFolderSummary *, CamelMimePart *); CamelMessageContentInfo * (*content_info_load)(CamelFolderSummary *, FILE *); - int (*content_info_save)(CamelFolderSummary *, FILE *, CamelMessageContentInfo *); - void (*content_info_free)(CamelFolderSummary *, CamelMessageContentInfo *); + int (*content_info_save)(CamelFolderSummary *, FILE *, CamelMessageContentInfo *); + void (*content_info_free)(CamelFolderSummary *, CamelMessageContentInfo *); CamelMessageInfo * (*message_info_from_uid) (CamelFolderSummary *, const char *); /* get the next uid */ char *(*next_uid_string)(CamelFolderSummary *); @@ -335,7 +335,7 @@ void camel_folder_summary_set_build_content(CamelFolderSummary *summary, gboolea guint32 camel_folder_summary_next_uid (CamelFolderSummary *summary); char *camel_folder_summary_next_uid_string (CamelFolderSummary *summary); -void camel_folder_summary_set_uid (CamelFolderSummary *summary, guint32 uid); +void camel_folder_summary_set_uid (CamelFolderSummary *summary, guint32 uid); /* load/save the summary in its entirety */ int camel_folder_summary_load(CamelFolderSummary *summary); diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c index bb6ac7d87..4cc76db4b 100644 --- a/camel/camel-folder-thread.c +++ b/camel/camel-folder-thread.c @@ -87,7 +87,7 @@ container_parent_child(CamelFolderThreadNode *parent, CamelFolderThreadNode *chi d(printf("scanning children:\n")); while (c->next) { d(printf(" %p\n", c)); - if (c->next==child) { + if (c->next==child) { d(printf("found node %p\n", child)); c->next = c->next->next; child->parent = NULL; diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 2dc415201..0699c9195 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -88,7 +88,7 @@ static void append_message (CamelFolder *folder, CamelMimeMessage *message, CamelException *ex); static GPtrArray *get_uids (CamelFolder *folder); -static GPtrArray *get_uncached_uids (CamelFolder *, GPtrArray * uids, CamelException *); +static GPtrArray *get_uncached_uids (CamelFolder *, GPtrArray * uids, CamelException *); static void free_uids (CamelFolder *folder, GPtrArray *array); static gint cmp_uids (CamelFolder *folder, const char *uid1, const char *uid2); @@ -2168,7 +2168,7 @@ folder_changed (CamelObject *obj, gpointer event_data) msg->driver = driver; camel_exception_init(&msg->ex); camel_session_thread_queue(session, &msg->msg, 0); - return FALSE; + return FALSE; } return TRUE; diff --git a/camel/camel-folder.h b/camel/camel-folder.h index c7bf50335..13ef1e0a7 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -321,7 +321,7 @@ void camel_folder_free_uids (CamelFolder *folder, GPtrArray * camel_folder_get_uncached_uids (CamelFolder *, GPtrArray * uids, CamelException *); -gint camel_folder_cmp_uids (CamelFolder *folder, const char *uid1, const char *uid2); +gint camel_folder_cmp_uids (CamelFolder *folder, const char *uid1, const char *uid2); void camel_folder_sort_uids (CamelFolder *folder, GPtrArray *uids); diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c index 89b811e2e..79dca62cd 100644 --- a/camel/camel-gpg-context.c +++ b/camel/camel-gpg-context.c @@ -978,18 +978,18 @@ gpg_ctx_parse_status (struct _GpgCtx *gpg, CamelException *ex) #define status_backup(gpg, start, len) G_STMT_START { \ if (gpg->statusleft <= len) { \ unsigned int slen, soff; \ - \ + \ slen = soff = gpg->statusptr - gpg->statusbuf; \ slen = slen ? slen : 1; \ - \ + \ while (slen < soff + len) \ slen <<= 1; \ - \ + \ gpg->statusbuf = g_realloc (gpg->statusbuf, slen + 1); \ gpg->statusptr = gpg->statusbuf + soff; \ gpg->statusleft = slen - soff; \ } \ - \ + \ memcpy (gpg->statusptr, start, len); \ gpg->statusptr += len; \ gpg->statusleft -= len; \ diff --git a/camel/camel-iconv.c b/camel/camel-iconv.c index 0854ce34f..95ec3612d 100644 --- a/camel/camel-iconv.c +++ b/camel/camel-iconv.c @@ -147,8 +147,8 @@ struct { { "gb18030-0", "gb18030" }, { "gbk-0", "GBK" }, - { "eucjp-0", "eucJP" }, - { "ujis-0", "ujis" }, + { "eucjp-0", "eucJP" }, + { "ujis-0", "ujis" }, { "jisx0208.1983-0","SJIS" }, { "jisx0212.1990-0","SJIS" }, { "pck", "SJIS" }, diff --git a/camel/camel-index.h b/camel/camel-index.h index 5146dcc0b..7e38ac3c1 100644 --- a/camel/camel-index.h +++ b/camel/camel-index.h @@ -66,7 +66,7 @@ struct _CamelIndexCursorClass { void (*reset) (CamelIndexCursor *idc); }; -CamelType camel_index_cursor_get_type(void); +CamelType camel_index_cursor_get_type(void); CamelIndexCursor *camel_index_cursor_new(CamelIndex *idx, const char *name); @@ -96,7 +96,7 @@ struct _CamelIndexNameClass { size_t (*add_buffer)(CamelIndexName *name, const char *buffer, size_t len); }; -CamelType camel_index_name_get_type (void); +CamelType camel_index_name_get_type (void); CamelIndexName *camel_index_name_new(CamelIndex *idx, const char *name); @@ -128,12 +128,12 @@ struct _CamelIndexClass { int (*rename)(CamelIndex *idx, const char *path); - int (*has_name)(CamelIndex *idx, const char *name); + int (*has_name)(CamelIndex *idx, const char *name); CamelIndexName * (*add_name)(CamelIndex *idx, const char *name); int (*write_name)(CamelIndex *idx, CamelIndexName *idn); CamelIndexCursor * (*find_name)(CamelIndex *idx, const char *name); - void (*delete_name)(CamelIndex *idx, const char *name); - CamelIndexCursor * (*find)(CamelIndex *idx, const char *word); + void (*delete_name)(CamelIndex *idx, const char *name); + CamelIndexCursor * (*find)(CamelIndex *idx, const char *word); CamelIndexCursor * (*words)(CamelIndex *idx); CamelIndexCursor * (*names)(CamelIndex *idx); @@ -142,7 +142,7 @@ struct _CamelIndexClass { /* flags, stored in 'state', set with set_state */ #define CAMEL_INDEX_DELETED (1<<0) -CamelType camel_index_get_type (void); +CamelType camel_index_get_type (void); CamelIndex *camel_index_new(const char *path, int flags); void camel_index_construct(CamelIndex *, const char *path, int flags); diff --git a/camel/camel-medium.c b/camel/camel-medium.c index 594796542..0202ed63b 100644 --- a/camel/camel-medium.c +++ b/camel/camel-medium.c @@ -3,7 +3,7 @@ /* camelMedium.c : Abstract class for a medium * * Authors: Bertrand Guiheneuf - * Michael Zucchi + * Michael Zucchi * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * diff --git a/camel/camel-mime-filter-basic.c b/camel/camel-mime-filter-basic.c index 755e8f88a..16a8ebcd3 100644 --- a/camel/camel-mime-filter-basic.c +++ b/camel/camel-mime-filter-basic.c @@ -120,7 +120,7 @@ complete(CamelMimeFilter *mf, char *in, size_t len, size_t prespace, char **out, break; case CAMEL_MIME_FILTER_BASIC_BASE64_DEC: /* output can't possibly exceed the input size */ - camel_mime_filter_set_size(mf, len, FALSE); + camel_mime_filter_set_size(mf, len, FALSE); newlen = g_base64_decode_step(in, len, (guchar *) mf->outbuf, &f->state, (guint *) &f->save); g_assert(newlen <= len); break; diff --git a/camel/camel-mime-filter-bestenc.h b/camel/camel-mime-filter-bestenc.h index 7e5301742..1ee3ed079 100644 --- a/camel/camel-mime-filter-bestenc.h +++ b/camel/camel-mime-filter-bestenc.h @@ -87,7 +87,7 @@ CamelMimeFilterBestenc *camel_mime_filter_bestenc_new (unsigned int flags); CamelTransferEncoding camel_mime_filter_bestenc_get_best_encoding(CamelMimeFilterBestenc *filter, CamelBestencEncoding required); const char * camel_mime_filter_bestenc_get_best_charset(CamelMimeFilterBestenc *filter); -void camel_mime_filter_bestenc_set_flags(CamelMimeFilterBestenc *filter, unsigned int flags); +void camel_mime_filter_bestenc_set_flags(CamelMimeFilterBestenc *filter, unsigned int flags); G_END_DECLS diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h index 249b2839e..8d0eda5f1 100644 --- a/camel/camel-mime-part.h +++ b/camel/camel-mime-part.h @@ -68,13 +68,13 @@ CamelType camel_mime_part_get_type (void); /* public methods */ CamelMimePart * camel_mime_part_new (void); -void camel_mime_part_set_description (CamelMimePart *mime_part, const char *description); +void camel_mime_part_set_description (CamelMimePart *mime_part, const char *description); const char *camel_mime_part_get_description (CamelMimePart *mime_part); -void camel_mime_part_set_disposition (CamelMimePart *mime_part, const char *disposition); +void camel_mime_part_set_disposition (CamelMimePart *mime_part, const char *disposition); const char *camel_mime_part_get_disposition (CamelMimePart *mime_part); -void camel_mime_part_set_filename (CamelMimePart *mime_part, const char *filename); +void camel_mime_part_set_filename (CamelMimePart *mime_part, const char *filename); const char *camel_mime_part_get_filename (CamelMimePart *mime_part); void camel_mime_part_set_content_id (CamelMimePart *mime_part, const char *contentid); @@ -86,21 +86,21 @@ const char *camel_mime_part_get_content_MD5 (CamelMimePart *mime_part); void camel_mime_part_set_content_location (CamelMimePart *mime_part, const char *location); const char *camel_mime_part_get_content_location (CamelMimePart *mime_part); -void camel_mime_part_set_encoding (CamelMimePart *mime_part, CamelTransferEncoding encoding); +void camel_mime_part_set_encoding (CamelMimePart *mime_part, CamelTransferEncoding encoding); CamelTransferEncoding camel_mime_part_get_encoding (CamelMimePart *mime_part); -void camel_mime_part_set_content_languages (CamelMimePart *mime_part, GList *content_languages); +void camel_mime_part_set_content_languages (CamelMimePart *mime_part, GList *content_languages); const GList *camel_mime_part_get_content_languages (CamelMimePart *mime_part); /* FIXME: what about content-type parameters? what about major/minor parts? */ -void camel_mime_part_set_content_type (CamelMimePart *mime_part, const char *content_type); +void camel_mime_part_set_content_type (CamelMimePart *mime_part, const char *content_type); CamelContentType *camel_mime_part_get_content_type (CamelMimePart *mime_part); /* construction */ int camel_mime_part_construct_from_parser (CamelMimePart *mime_part, CamelMimeParser *parser); /* utility functions */ -void camel_mime_part_set_content (CamelMimePart *mime_part, +void camel_mime_part_set_content (CamelMimePart *mime_part, const char *data, int length, const char *type); size_t camel_mime_part_get_content_size (CamelMimePart *mime_part); diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index e82946d2d..fc01e78c1 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -431,7 +431,7 @@ camel_uudecode_step (unsigned char *in, size_t len, unsigned char *out, int *sta if (uulen >= 3) { *outptr++ = CAMEL_UUDECODE_CHAR (b0) << 2 | CAMEL_UUDECODE_CHAR (b1) >> 4; *outptr++ = CAMEL_UUDECODE_CHAR (b1) << 4 | CAMEL_UUDECODE_CHAR (b2) >> 2; - *outptr++ = CAMEL_UUDECODE_CHAR (b2) << 6 | CAMEL_UUDECODE_CHAR (b3); + *outptr++ = CAMEL_UUDECODE_CHAR (b2) << 6 | CAMEL_UUDECODE_CHAR (b3); } else { if (uulen >= 1) { *outptr++ = CAMEL_UUDECODE_CHAR (b0) << 2 | CAMEL_UUDECODE_CHAR (b1) >> 4; @@ -3839,19 +3839,19 @@ get_days_in_month (int month, int year) case 8: case 10: case 12: - return 31; + return 31; case 4: case 6: case 9: case 11: - return 30; + return 30; case 2: - if (g_date_is_leap_year (year)) - return 29; + if (g_date_is_leap_year (year)) + return 29; else - return 28; + return 28; default: - return 0; + return 0; } } #endif diff --git a/camel/camel-net-utils.c b/camel/camel-net-utils.c index 44f35a0cf..8d4a8f481 100644 --- a/camel/camel-net-utils.c +++ b/camel/camel-net-utils.c @@ -1,7 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Authors: Michael Zucchi - * Jeffrey Stedfast + * Jeffrey Stedfast * Chris Toshok * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) @@ -91,7 +91,7 @@ G_LOCK_DEFINE_STATIC (gethost_mutex); int req_length; \ char *p; \ int i; \ - \ + \ /* check to make sure we have enough room in our buffer */ \ req_length = 0; \ if (h->h_aliases) { \ @@ -99,23 +99,23 @@ G_LOCK_DEFINE_STATIC (gethost_mutex); req_length += strlen (h->h_aliases[i]) + 1; \ num_aliases = i; \ } \ - \ + \ if (h->h_addr_list) { \ for (i = 0; h->h_addr_list[i]; i++) \ req_length += h->h_length; \ num_addrs = i; \ } \ - \ + \ req_length += sizeof (char *) * (num_aliases + 1); \ req_length += sizeof (char *) * (num_addrs + 1); \ req_length += strlen (h->h_name) + 1; \ - \ + \ if (buflen < req_length) { \ *herr = ERANGE; \ G_UNLOCK (gethost_mutex); \ return ERANGE; \ } \ - \ + \ /* we store the alias/addr pointers in the buffer */ \ /* their addresses here. */ \ p = buf; \ @@ -130,14 +130,14 @@ G_LOCK_DEFINE_STATIC (gethost_mutex); p += sizeof (char *) * (num_addrs + 1); \ } else \ host->h_addr_list = NULL; \ - \ + \ /* copy the host name into the buffer */ \ host->h_name = p; \ strcpy (p, h->h_name); \ p += strlen (h->h_name) + 1; \ host->h_addrtype = h->h_addrtype; \ host->h_length = h->h_length; \ - \ + \ /* copy the aliases/addresses into the buffer */ \ /* and assign pointers into the hostent */ \ *p = 0; \ @@ -149,7 +149,7 @@ G_LOCK_DEFINE_STATIC (gethost_mutex); } \ host->h_aliases[num_aliases] = NULL; \ } \ - \ + \ if (num_addrs) { \ for (i = 0; i < num_addrs; i++) { \ memcpy (p, h->h_addr_list[i], h->h_length); \ diff --git a/camel/camel-net-utils.h b/camel/camel-net-utils.h index 8adc03603..363571c90 100644 --- a/camel/camel-net-utils.h +++ b/camel/camel-net-utils.h @@ -1,7 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Authors: Michael Zucchi - * Jeffrey Stedfast + * Jeffrey Stedfast * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * diff --git a/camel/camel-object.c b/camel/camel-object.c index 7a4cb7f97..1d085a748 100644 --- a/camel/camel-object.c +++ b/camel/camel-object.c @@ -39,13 +39,13 @@ #include "camel-object.h" #define d(x) -#define b(x) /* object bag */ -#define h(x) /* hooks */ +#define b(x) /* object bag */ +#define h(x) /* hooks */ /* I just mashed the keyboard for these... */ -#define CAMEL_OBJECT_MAGIC 0x77A344ED -#define CAMEL_OBJECT_CLASS_MAGIC 0xEE26A997 -#define CAMEL_INTERFACE_MAGIC 0xBCE137A7 +#define CAMEL_OBJECT_MAGIC 0x77A344ED +#define CAMEL_OBJECT_CLASS_MAGIC 0xEE26A997 +#define CAMEL_INTERFACE_MAGIC 0xBCE137A7 #define CAMEL_OBJECT_FINALISED_MAGIC 0x84AC365F #define CAMEL_OBJECT_CLASS_FINALISED_MAGIC 0x7621ABCD #define CAMEL_INTERFACE_FINALISED_MAGIC 0x7CB2FE71 @@ -392,7 +392,7 @@ done: Version 0 of the file: version:uint32 = 0 - count:uint32 -- count of meta-data items + count:uint32 -- count of meta-data items ( name:string value:string ) *count -- meta-data items Version 1 of the file adds: diff --git a/camel/camel-offline-folder.c b/camel/camel-offline-folder.c index e43548fe4..c9950487a 100644 --- a/camel/camel-offline-folder.c +++ b/camel/camel-offline-folder.c @@ -258,7 +258,7 @@ offline_folder_downsync (CamelOfflineFolder *offline, const char *expression, Ca uids = camel_folder_get_uids (folder); if (!uids) - goto done; + goto done; uncached_uids = camel_folder_get_uncached_uids(folder, uids, ex); if (uids) { if (expression) diff --git a/camel/camel-search-sql-sexp.c b/camel/camel-search-sql-sexp.c index 5fcabcb2a..bd5005c48 100644 --- a/camel/camel-search-sql-sexp.c +++ b/camel/camel-search-sql-sexp.c @@ -573,7 +573,7 @@ static struct { { "match-all", (ESExpFunc *)match_all, 1 }, { "match-threads", (ESExpFunc *)match_threads, 1 }, -/* { "body-contains", body_contains}, */ /* We don't store body on the db. */ +/* { "body-contains", body_contains}, */ /* We don't store body on the db. */ { "header-contains", header_contains, 0}, { "header-matches", header_matches, 0}, { "header-starts-with", header_starts_with, 0}, diff --git a/camel/camel-search-sql.c b/camel/camel-search-sql.c index ce1d28527..e9e745100 100644 --- a/camel/camel-search-sql.c +++ b/camel/camel-search-sql.c @@ -812,7 +812,7 @@ camel_sexp_to_sql (const char *txt) char *str = g_strdup_printf("NOT ( %s )", n->exact_token); g_free (n->exact_token); n->exact_token = str; - all = g_list_prepend (all, n); + all = g_list_prepend (all, n); if (preserve) { GList *foo; foo = preserve; @@ -829,7 +829,7 @@ camel_sexp_to_sql (const char *txt) } if (!lastoper) - free_node (n1); + free_node (n1); g_list_free (res); res = NULL; tmp = all; diff --git a/camel/camel-seekable-stream.h b/camel/camel-seekable-stream.h index fab9a3941..04148c900 100644 --- a/camel/camel-seekable-stream.h +++ b/camel/camel-seekable-stream.h @@ -70,7 +70,7 @@ CamelType camel_seekable_stream_get_type (void); /* public methods */ off_t camel_seekable_stream_seek (CamelSeekableStream *stream, off_t offset, CamelStreamSeekPolicy policy); -off_t camel_seekable_stream_tell (CamelSeekableStream *stream); +off_t camel_seekable_stream_tell (CamelSeekableStream *stream); int camel_seekable_stream_set_bounds (CamelSeekableStream *stream, off_t start, off_t end); G_END_DECLS diff --git a/camel/camel-session.h b/camel/camel-session.h index 25d285845..b7449c9f7 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -231,7 +231,7 @@ gboolean camel_session_lookup_addressbook (CamelSession *session, void camel_session_forward_to (CamelSession *session, struct _CamelFolder *folder, - struct _CamelMimeMessage *message, + struct _CamelMimeMessage *message, const char *address, CamelException *ex); diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c index 3a959498d..b7f14ae16 100644 --- a/camel/camel-smime-context.c +++ b/camel/camel-smime-context.c @@ -257,7 +257,7 @@ nss_error_to_string (long errorcode) cs (SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE, "The certificate issuer's certificate has expired. Check your system date and time.") cs (SEC_ERROR_CRL_EXPIRED, "The CRL for the certificate's issuer has expired. Update it or check your system date and time.") cs (SEC_ERROR_CRL_BAD_SIGNATURE, "The CRL for the certificate's issuer has an invalid signature.") - cs (SEC_ERROR_CRL_INVALID, "New CRL has an invalid format.") + cs (SEC_ERROR_CRL_INVALID, "New CRL has an invalid format.") cs (SEC_ERROR_EXTENSION_VALUE_INVALID, "Certificate extension value is invalid.") cs (SEC_ERROR_EXTENSION_NOT_FOUND, "Certificate extension not found.") cs (SEC_ERROR_CA_CERT_INVALID, "Issuer certificate is invalid.") @@ -931,7 +931,7 @@ sm_verify(CamelCipherContext *context, CamelMimePart *ipart, CamelException *ex) dec = NSS_CMSDecoder_Start(NULL, NULL, NULL, /* content callback */ - NULL, NULL, /* password callback */ + NULL, NULL, /* password callback */ NULL, NULL); /* decrypt key callback */ camel_data_wrapper_decode_to_stream(camel_medium_get_content_object((CamelMedium *)sigpart), (CamelStream *)mem); @@ -968,7 +968,7 @@ sm_encrypt(CamelCipherContext *context, const char *userid, GPtrArray *recipient PLArenaPool *poolp; NSSCMSMessage *cmsg = NULL; NSSCMSEnvelopedData *envd; - NSSCMSEncoderContext *enc = NULL; + NSSCMSEncoderContext *enc = NULL; CamelStreamMem *mem; CamelStream *ostream = NULL; CamelDataWrapper *dw; diff --git a/camel/camel-store.h b/camel/camel-store.h index 4fd3a0232..457b7e737 100644 --- a/camel/camel-store.h +++ b/camel/camel-store.h @@ -212,9 +212,9 @@ CamelType camel_store_get_type (void); /* public methods */ CamelFolder * camel_store_get_folder (CamelStore *store, - const char *folder_name, + const char *folder_name, guint32 flags, - CamelException *ex); + CamelException *ex); CamelFolder * camel_store_get_inbox (CamelStore *store, CamelException *ex); CamelFolder * camel_store_get_trash (CamelStore *store, diff --git a/camel/camel-text-index.h b/camel/camel-text-index.h index 2f90e5d8e..be9c29843 100644 --- a/camel/camel-text-index.h +++ b/camel/camel-text-index.h @@ -100,7 +100,7 @@ struct _CamelTextIndexClass { CamelIndexClass parent_class; }; -CamelType camel_text_index_get_type (void); +CamelType camel_text_index_get_type (void); CamelTextIndex *camel_text_index_new(const char *path, int flags); /* static utility functions */ diff --git a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c index dc00c6075..9b004c46d 100644 --- a/camel/camel-vee-folder.c +++ b/camel/camel-vee-folder.c @@ -586,9 +586,9 @@ vee_sync(CamelFolder *folder, gboolean expunge, CamelException *ex) /* auto update vfolders shouldn't need a rebuild */ -/* if ((vf->flags & CAMEL_STORE_VEE_FOLDER_AUTO) == 0 */ -/* && camel_vee_folder_rebuild_folder(vf, f, ex) == -1) */ -/* break; */ +/* if ((vf->flags & CAMEL_STORE_VEE_FOLDER_AUTO) == 0 */ +/* && camel_vee_folder_rebuild_folder(vf, f, ex) == -1) */ +/* break; */ node = node->next; } diff --git a/camel/camel-vee-summary.c b/camel/camel-vee-summary.c index d495c1f61..1dfaf4dd3 100644 --- a/camel/camel-vee-summary.c +++ b/camel/camel-vee-summary.c @@ -122,7 +122,7 @@ vee_info_user_flag(const CamelMessageInfo *mi, const char *id) gboolean ret; HANDLE_NULL_INFO(FALSE); - ret = camel_message_info_user_flag (rmi, id); + ret = camel_message_info_user_flag (rmi, id); camel_message_info_free (rmi); return ret; diff --git a/camel/db-scrap-tools/db.c b/camel/db-scrap-tools/db.c index 4ad697198..5569c002b 100644 --- a/camel/db-scrap-tools/db.c +++ b/camel/db-scrap-tools/db.c @@ -9,43 +9,43 @@ sqlite3 *db; static int callback (void *data, int argc, char **argv, char **azColName) { - int i; - for(i=0; icache, "cache", id, NULL))) { - if (camel_data_wrapper_write_to_stream ((CamelDataWrapper *) mail_msg, cache_stream) == -1 || camel_stream_flush (cache_stream) == -1) + if (camel_data_wrapper_write_to_stream ((CamelDataWrapper *) mail_msg, cache_stream) == -1 || camel_stream_flush (cache_stream) == -1) camel_data_cache_remove (gw_folder->cache, "cache", id, NULL); camel_object_unref (cache_stream); } diff --git a/camel/providers/groupwise/camel-groupwise-provider.c b/camel/providers/groupwise/camel-groupwise-provider.c index 69d317f05..3f3efe920 100644 --- a/camel/providers/groupwise/camel-groupwise-provider.c +++ b/camel/providers/groupwise/camel-groupwise-provider.c @@ -142,7 +142,7 @@ camel_provider_module_init(void) if (use_imap) groupwise_provider.object_types[CAMEL_PROVIDER_STORE] = imap_provider->object_types [CAMEL_PROVIDER_STORE]; - else { + else { groupwise_provider.object_types[CAMEL_PROVIDER_STORE] = camel_groupwise_store_get_type(); groupwise_provider.object_types[CAMEL_PROVIDER_TRANSPORT] = camel_groupwise_transport_get_type(); } diff --git a/camel/providers/groupwise/camel-groupwise-store.c b/camel/providers/groupwise/camel-groupwise-store.c index 7b391491e..34baa6996 100644 --- a/camel/providers/groupwise/camel-groupwise-store.c +++ b/camel/providers/groupwise/camel-groupwise-store.c @@ -592,7 +592,7 @@ groupwise_get_folder (CamelStore *store, const char *folder_name, guint32 flags, } } - container_id = g_strdup (g_hash_table_lookup (priv->name_hash, folder_name)); + container_id = g_strdup (g_hash_table_lookup (priv->name_hash, folder_name)); storage_path = g_strdup_printf("%s/folders", priv->storage_path); @@ -735,7 +735,7 @@ gw_store_reload_folder (CamelGroupwiseStore *gw_store, CamelFolder *folder, guin } } - container_id = g_strdup (g_hash_table_lookup (priv->name_hash, folder->full_name)); + container_id = g_strdup (g_hash_table_lookup (priv->name_hash, folder->full_name)); si = camel_store_summary_path ((CamelStoreSummary *)gw_store->summary, folder->name); if (si) { @@ -1350,7 +1350,7 @@ groupwise_delete_folder(CamelStore *store, static void groupwise_rename_folder(CamelStore *store, - const char *old_name, + const char *old_name, const char *new_name, CamelException *ex) { diff --git a/camel/providers/groupwise/camel-groupwise-summary.c b/camel/providers/groupwise/camel-groupwise-summary.c index 3417419b7..2da8338e3 100644 --- a/camel/providers/groupwise/camel-groupwise-summary.c +++ b/camel/providers/groupwise/camel-groupwise-summary.c @@ -3,7 +3,7 @@ * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * * Authors: - * parthasrathi susarla + * parthasrathi susarla * Based on the IMAP summary class implementation by: * Michael Zucchi * Dan Winship diff --git a/camel/providers/groupwise/camel-groupwise-transport.c b/camel/providers/groupwise/camel-groupwise-transport.c index fc53bffc7..759c9164c 100644 --- a/camel/providers/groupwise/camel-groupwise-transport.c +++ b/camel/providers/groupwise/camel-groupwise-transport.c @@ -160,7 +160,7 @@ groupwise_send_to (CamelTransport *transport, service = CAMEL_SERVICE(transport); url = camel_url_to_string (service->url, - (CAMEL_URL_HIDE_PASSWORD | + (CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS | CAMEL_URL_HIDE_AUTH) ); diff --git a/camel/providers/groupwise/camel-groupwise-utils.c b/camel/providers/groupwise/camel-groupwise-utils.c index d91e212b7..fb784c2f9 100644 --- a/camel/providers/groupwise/camel-groupwise-utils.c +++ b/camel/providers/groupwise/camel-groupwise-utils.c @@ -110,7 +110,7 @@ e_path_to_physical (const char *prefix, const char *vpath) /* Copy the mangled path. */ p = vpath; - while (1) { + while (1) { newp = strchr (p, '/'); if (newp == NULL) { strcpy (dp, p); diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 9f1bb6ad9..9b8e9edb6 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -877,8 +877,8 @@ imap_rescan (CamelFolder *folder, int exists, CamelException *ex) gboolean ok; CamelFolderChangeInfo *changes = NULL; - if (camel_application_is_exiting) - return; + if (camel_application_is_exiting) + return; imap_folder->need_rescan = FALSE; @@ -2871,11 +2871,11 @@ content_info_incomplete (CamelMessageContentInfo *ci) static CamelImapMessageInfo * imap_folder_summary_uid_or_error(CamelFolderSummary *summary, const char * uid, CamelException *ex) { - CamelImapMessageInfo *mi; + CamelImapMessageInfo *mi; mi = (CamelImapMessageInfo *)camel_folder_summary_uid (summary, uid); if (mi == NULL) { camel_exception_setv ( - ex, CAMEL_EXCEPTION_FOLDER_INVALID_UID, + ex, CAMEL_EXCEPTION_FOLDER_INVALID_UID, _("Cannot get message with message ID %s: %s"), uid, _("No such message available.")); } @@ -3603,21 +3603,21 @@ imap_update_summary (CamelFolder *folder, int exists, /* FIXME: If it enters if(info) it will always match the exception. So stupid */ /* FIXME[disk-summary] Use a db query to see if the DB exists */ -/* info = (CamelImapMessageInfo *)camel_folder_summary_uid(folder->summary, uid); */ -/* if (info) { */ -/* for (seq = 0; seq < camel_folder_summary_count (folder->summary); seq++) { */ -/* if (folder->summary->messages->pdata[seq] == info) */ -/* break; */ -/* } */ - -/* g_warning("Message already present? %s", camel_message_info_uid(mi)); */ -/* camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, */ -/* _("Unexpected server response: Identical UIDs provided for messages %d and %d"), */ -/* seq + 1, i + first); */ - -/* camel_message_info_free(&info->info); */ -/* break; */ -/* } */ +/* info = (CamelImapMessageInfo *)camel_folder_summary_uid(folder->summary, uid); */ +/* if (info) { */ +/* for (seq = 0; seq < camel_folder_summary_count (folder->summary); seq++) { */ +/* if (folder->summary->messages->pdata[seq] == info) */ +/* break; */ +/* } */ + +/* g_warning("Message already present? %s", camel_message_info_uid(mi)); */ +/* camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, */ +/* _("Unexpected server response: Identical UIDs provided for messages %d and %d"), */ +/* seq + 1, i + first); */ + +/* camel_message_info_free(&info->info); */ +/* break; */ +/* } */ ((CamelMessageInfoBase *)mi)->dirty = TRUE; if (((CamelMessageInfoBase *)mi)->summary) diff --git a/camel/providers/imap/camel-imap-journal.c b/camel/providers/imap/camel-imap-journal.c index 804ca00e0..2e48e4169 100644 --- a/camel/providers/imap/camel-imap-journal.c +++ b/camel/providers/imap/camel-imap-journal.c @@ -276,7 +276,7 @@ imap_entry_write (CamelOfflineJournal *journal, CamelDListNode *entry, FILE *out case CAMEL_IMAP_JOURNAL_ENTRY_EXPUNGE: uids = imap_entry->uids; - if (encode_uids (out, uids)) + if (encode_uids (out, uids)) return -1; case CAMEL_IMAP_JOURNAL_ENTRY_APPEND: if (camel_file_util_encode_string (out, imap_entry->append_uid)) diff --git a/camel/providers/imap4/camel-imap4-command.c b/camel/providers/imap4/camel-imap4-command.c index 93b51760a..4baec847f 100644 --- a/camel/providers/imap4/camel-imap4-command.c +++ b/camel/providers/imap4/camel-imap4-command.c @@ -512,10 +512,10 @@ unexpected_token (camel_imap4_token_t *token) fprintf (stderr, "NIL"); break; case CAMEL_IMAP4_TOKEN_ATOM: - fprintf (stderr, "%s", token->v.atom); + fprintf (stderr, "%s", token->v.atom); break; case CAMEL_IMAP4_TOKEN_QSTRING: - fprintf (stderr, "\"%s\"", token->v.qstring); + fprintf (stderr, "\"%s\"", token->v.qstring); break; case CAMEL_IMAP4_TOKEN_LITERAL: fprintf (stderr, "{%u}", token->v.literal); diff --git a/camel/providers/imap4/camel-imap4-stream.c b/camel/providers/imap4/camel-imap4-stream.c index 2c623f892..cc7513024 100644 --- a/camel/providers/imap4/camel-imap4-stream.c +++ b/camel/providers/imap4/camel-imap4-stream.c @@ -294,18 +294,18 @@ camel_imap4_stream_new (CamelStream *stream) #define token_save(imap4, start, len) G_STMT_START { \ if (imap4->tokenleft <= len) { \ unsigned int tlen, toff; \ - \ + \ tlen = toff = imap4->tokenptr - imap4->tokenbuf; \ tlen = tlen ? tlen : 1; \ - \ + \ while (tlen < toff + len) \ tlen <<= 1; \ - \ + \ imap4->tokenbuf = g_realloc (imap4->tokenbuf, tlen + 1); \ imap4->tokenptr = imap4->tokenbuf + toff; \ imap4->tokenleft = tlen - toff; \ } \ - \ + \ memcpy (imap4->tokenptr, start, len); \ imap4->tokenptr += len; \ imap4->tokenleft -= len; \ diff --git a/camel/providers/imapp/camel-imapp-driver.h b/camel/providers/imapp/camel-imapp-driver.h index da7249996..ef028cfa0 100644 --- a/camel/providers/imapp/camel-imapp-driver.h +++ b/camel/providers/imapp/camel-imapp-driver.h @@ -80,7 +80,7 @@ struct _CamelIMAPPDriverClass { CamelObjectClass parent_class; }; -CamelType camel_imapp_driver_get_type (void); +CamelType camel_imapp_driver_get_type (void); CamelIMAPPDriver * camel_imapp_driver_new(CamelIMAPPStream *stream); diff --git a/camel/providers/imapp/camel-imapp-engine.h b/camel/providers/imapp/camel-imapp-engine.h index 03af033dd..6bfc93c58 100644 --- a/camel/providers/imapp/camel-imapp-engine.h +++ b/camel/providers/imapp/camel-imapp-engine.h @@ -140,7 +140,7 @@ CamelType camel_imapp_engine_get_type (void); CamelIMAPPEngine *camel_imapp_engine_new(CamelIMAPPStream *stream); void camel_imapp_engine_add_handler(CamelIMAPPEngine *imap, const char *response, CamelIMAPPEngineFunc func, void *data); -int camel_imapp_engine_iterate(CamelIMAPPEngine *imap, CamelIMAPPCommand *wait); /* throws PARSE,IO exception */ +int camel_imapp_engine_iterate(CamelIMAPPEngine *imap, CamelIMAPPCommand *wait); /* throws PARSE,IO exception */ int camel_imapp_engine_skip(CamelIMAPPEngine *imap); int camel_imapp_engine_capabilities(CamelIMAPPEngine *imap); @@ -148,7 +148,7 @@ CamelIMAPPCommand *camel_imapp_engine_command_new (CamelIMAPPEngine *imap, cons void camel_imapp_engine_command_complete(CamelIMAPPEngine *imap, struct _CamelIMAPPCommand *, CamelIMAPPCommandFunc func, void *data); void camel_imapp_engine_command_add (CamelIMAPPEngine *imap, CamelIMAPPCommand *ic, const char *fmt, ...); void camel_imapp_engine_command_free (CamelIMAPPEngine *imap, CamelIMAPPCommand *ic); -void camel_imapp_engine_command_queue(CamelIMAPPEngine *imap, CamelIMAPPCommand *ic); /* throws IO exception */ +void camel_imapp_engine_command_queue(CamelIMAPPEngine *imap, CamelIMAPPCommand *ic); /* throws IO exception */ CamelIMAPPCommand *camel_imapp_engine_command_find (CamelIMAPPEngine *imap, const char *name); CamelIMAPPCommand *camel_imapp_engine_command_find_tag(CamelIMAPPEngine *imap, unsigned int tag); diff --git a/camel/providers/imapp/camel-imapp-stream.h b/camel/providers/imapp/camel-imapp-stream.h index 300d63d79..4af986f73 100644 --- a/camel/providers/imapp/camel-imapp-stream.h +++ b/camel/providers/imapp/camel-imapp-stream.h @@ -70,8 +70,8 @@ camel_imapp_token_t camel_imapp_stream_token (CamelIMAPPStream *is, unsigned cha void camel_imapp_stream_ungettoken (CamelIMAPPStream *is, camel_imapp_token_t tok, unsigned char *token, unsigned int len); void camel_imapp_stream_set_literal (CamelIMAPPStream *is, unsigned int literal); -int camel_imapp_stream_gets (CamelIMAPPStream *is, unsigned char **start, unsigned int *len); -int camel_imapp_stream_getl (CamelIMAPPStream *is, unsigned char **start, unsigned int *len); +int camel_imapp_stream_gets (CamelIMAPPStream *is, unsigned char **start, unsigned int *len); +int camel_imapp_stream_getl (CamelIMAPPStream *is, unsigned char **start, unsigned int *len); /* all throw IO,PARSE exceptions */ diff --git a/camel/providers/local/camel-maildir-folder.h b/camel/providers/local/camel-maildir-folder.h index 555911172..8e21dc92b 100644 --- a/camel/providers/local/camel-maildir-folder.h +++ b/camel/providers/local/camel-maildir-folder.h @@ -1,7 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Authors: - * Michael Zucchi + * Michael Zucchi * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index d2951df35..45319a1d9 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -69,7 +69,7 @@ static CamelMessageInfo * message_info_new_from_header(CamelFolderSummary *, str static CamelMessageInfo * message_info_new_from_parser(CamelFolderSummary *, CamelMimeParser *); static CamelMessageInfo * message_info_load (CamelFolderSummary *, FILE *); static int message_info_save (CamelFolderSummary *, FILE *, CamelMessageInfo *); -static int meta_message_info_save(CamelFolderSummary *s, FILE *out_meta, FILE *out, CamelMessageInfo *mi); +static int meta_message_info_save(CamelFolderSummary *s, FILE *out_meta, FILE *out, CamelMessageInfo *mi); /*static void message_info_free (CamelFolderSummary *, CamelMessageInfo *);*/ static char *mbox_summary_encode_x_evolution (CamelLocalSummary *cls, const CamelLocalMessageInfo *mi); diff --git a/camel/providers/local/camel-mh-folder.h b/camel/providers/local/camel-mh-folder.h index a002081a9..abc65568d 100644 --- a/camel/providers/local/camel-mh-folder.h +++ b/camel/providers/local/camel-mh-folder.h @@ -1,7 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Authors: - * Michael Zucchi + * Michael Zucchi * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * diff --git a/camel/providers/nntp/camel-nntp-folder.c b/camel/providers/nntp/camel-nntp-folder.c index 522412f6b..2fbbf4472 100644 --- a/camel/providers/nntp/camel-nntp-folder.c +++ b/camel/providers/nntp/camel-nntp-folder.c @@ -430,7 +430,7 @@ nntp_folder_append_message_offline (CamelFolder *folder, CamelMimeMessage *mime_ CamelException *ex) { camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, - _("You cannot post NNTP messages while working offline!")); + _("You cannot post NNTP messages while working offline!")); } /* I do not know what to do this exactly. Looking at the IMAP implementation for this, it @@ -441,7 +441,7 @@ nntp_folder_transfer_message (CamelFolder *source, GPtrArray *uids, CamelFolder GPtrArray **transferred_uids, gboolean delete_orig, CamelException *ex) { camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, - _("You cannot copy messages from a NNTP folder!")); + _("You cannot copy messages from a NNTP folder!")); } static void diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c index c4335e2f2..594a91aa2 100644 --- a/camel/providers/nntp/camel-nntp-store.c +++ b/camel/providers/nntp/camel-nntp-store.c @@ -4,7 +4,7 @@ * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * * Authors: Christopher Toshok - * Michael Zucchi + * Michael Zucchi * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU Lesser General Public @@ -73,8 +73,8 @@ static CamelServiceClass *service_class = NULL; static int camel_nntp_try_authenticate (CamelNNTPStore *store, CamelException *ex); static void nntp_construct (CamelService *service, CamelSession *session, - CamelProvider *provider, CamelURL *url, - CamelException *ex); + CamelProvider *provider, CamelURL *url, + CamelException *ex); static gboolean @@ -241,10 +241,10 @@ connect_to_server (CamelService *service, struct addrinfo *ai, int ssl_mode, Cam && camel_nntp_try_authenticate(store, ex) != NNTP_AUTH_ACCEPTED) goto fail; - /* set 'reader' mode & ignore return code, also ping the server, inn goes offline very quickly otherwise */ + /* set 'reader' mode & ignore return code, also ping the server, inn goes offline very quickly otherwise */ if (camel_nntp_raw_command_auth (store, ex, (char **) &buf, "mode reader") == -1 || camel_nntp_raw_command_auth (store, ex, (char **) &buf, "date") == -1) - goto fail; + goto fail; if (xover_setup(store, ex) == -1) goto fail; @@ -912,7 +912,7 @@ nntp_store_subscribe_folder (CamelStore *store, const char *folder_name, if (!si) { camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID, _("You cannot subscribe to this newsgroup:\n\n" - "No such newsgroup. The selected item is a probably a parent folder.")); + "No such newsgroup. The selected item is a probably a parent folder.")); } else { if (!(si->flags & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED)) { si->flags |= CAMEL_STORE_INFO_FOLDER_SUBSCRIBED; @@ -944,7 +944,7 @@ nntp_store_unsubscribe_folder (CamelStore *store, const char *folder_name, if (!fitem) { camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID, _("You cannot unsubscribe to this newsgroup:\n\n" - "newsgroup does not exist!")); + "newsgroup does not exist!")); } else { if (fitem->flags & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED) { fitem->flags &= ~CAMEL_STORE_INFO_FOLDER_SUBSCRIBED; @@ -968,7 +968,7 @@ nntp_create_folder (CamelStore *store, const char *parent_name, const char *folder_name, CamelException *ex) { camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID, - _("You cannot create a folder in a News store: subscribe instead.")); + _("You cannot create a folder in a News store: subscribe instead.")); return NULL; } @@ -976,7 +976,7 @@ static void nntp_rename_folder (CamelStore *store, const char *old_name, const char *new_name_in, CamelException *ex) { camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID, - _("You cannot rename a folder in a News store.")); + _("You cannot rename a folder in a News store.")); } static void @@ -984,7 +984,7 @@ nntp_delete_folder (CamelStore *store, const char *folder_name, CamelException * { nntp_store_unsubscribe_folder (store, folder_name, ex); camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID, - _("You cannot remove a folder in a News store: unsubscribe instead.")); + _("You cannot remove a folder in a News store: unsubscribe instead.")); return; } diff --git a/camel/providers/nntp/camel-nntp-stream.h b/camel/providers/nntp/camel-nntp-stream.h index 35829e6c0..676bd1136 100644 --- a/camel/providers/nntp/camel-nntp-stream.h +++ b/camel/providers/nntp/camel-nntp-stream.h @@ -62,8 +62,8 @@ CamelStream *camel_nntp_stream_new (CamelStream *source); void camel_nntp_stream_set_mode (CamelNNTPStream *is, camel_nntp_stream_mode_t mode); int camel_nntp_stream_line (CamelNNTPStream *is, unsigned char **data, unsigned int *len); -int camel_nntp_stream_gets (CamelNNTPStream *is, unsigned char **start, unsigned int *len); -int camel_nntp_stream_getd (CamelNNTPStream *is, unsigned char **start, unsigned int *len); +int camel_nntp_stream_gets (CamelNNTPStream *is, unsigned char **start, unsigned int *len); +int camel_nntp_stream_getd (CamelNNTPStream *is, unsigned char **start, unsigned int *len); G_END_DECLS diff --git a/camel/providers/pop3/camel-pop3-engine.h b/camel/providers/pop3/camel-pop3-engine.h index 2a4c95a18..06a3e480e 100644 --- a/camel/providers/pop3/camel-pop3-engine.h +++ b/camel/providers/pop3/camel-pop3-engine.h @@ -129,7 +129,7 @@ void camel_pop3_engine_reget_capabilities (CamelPOP3Engine *engine) void camel_pop3_engine_command_free(CamelPOP3Engine *pe, CamelPOP3Command *pc); -int camel_pop3_engine_iterate (CamelPOP3Engine *pe, CamelPOP3Command *pc); +int camel_pop3_engine_iterate (CamelPOP3Engine *pe, CamelPOP3Command *pc); CamelPOP3Command *camel_pop3_engine_command_new (CamelPOP3Engine *pe, guint32 flags, CamelPOP3CommandFunc func, void *data, const char *fmt, ...); diff --git a/camel/providers/pop3/camel-pop3-stream.h b/camel/providers/pop3/camel-pop3-stream.h index b52ace4d9..bf90cee8e 100644 --- a/camel/providers/pop3/camel-pop3-stream.h +++ b/camel/providers/pop3/camel-pop3-stream.h @@ -65,8 +65,8 @@ CamelStream *camel_pop3_stream_new (CamelStream *source); void camel_pop3_stream_set_mode (CamelPOP3Stream *is, camel_pop3_stream_mode_t mode); int camel_pop3_stream_line (CamelPOP3Stream *is, unsigned char **data, unsigned int *len); -int camel_pop3_stream_gets (CamelPOP3Stream *is, unsigned char **start, unsigned int *len); -int camel_pop3_stream_getd (CamelPOP3Stream *is, unsigned char **start, unsigned int *len); +int camel_pop3_stream_gets (CamelPOP3Stream *is, unsigned char **start, unsigned int *len); +int camel_pop3_stream_getd (CamelPOP3Stream *is, unsigned char **start, unsigned int *len); G_END_DECLS diff --git a/camel/tests/folder/test3.c b/camel/tests/folder/test3.c index e4a5fb281..99b1f79cc 100644 --- a/camel/tests/folder/test3.c +++ b/camel/tests/folder/test3.c @@ -105,7 +105,7 @@ static struct { { { 1, 0, 0 }, "(= 72000 (get-sent-date))" }, { { 0, 0, 0 }, "(= 72001 (get-sent-date))" }, - { { (100/2-1)/17+1, (50/2-1)/17+1, 0 }, "(and (user-flag \"every17\") (< 72000 (get-sent-date)))" }, + { { (100/2-1)/17+1, (50/2-1)/17+1, 0 }, "(and (user-flag \"every17\") (< 72000 (get-sent-date)))" }, { { (100/2-1)/17+1, (50/2-1)/17, 0 }, "(and (user-flag \"every17\") (> 72000 (get-sent-date)))" }, { { (100/2-1)/13+1, (50/2-1)/13+1, 0 }, "(and (user-flag \"every13\") (< 72000 (get-sent-date)))" }, { { (100/2-1)/13+1, (50/2-1)/13+1, 0 }, "(and (user-flag \"every13\") (> 72000 (get-sent-date)))" }, diff --git a/camel/tests/message/test1.c b/camel/tests/message/test1.c index 41eb73d42..12b585a13 100644 --- a/camel/tests/message/test1.c +++ b/camel/tests/message/test1.c @@ -13,7 +13,7 @@ reading/writing different charsets Just testing streams: - different stream types + different stream types different file ops seek, eof, etc. */ diff --git a/camel/tests/misc/utf7.c b/camel/tests/misc/utf7.c index dec0f4b7e..9bccb2b91 100644 --- a/camel/tests/misc/utf7.c +++ b/camel/tests/misc/utf7.c @@ -16,7 +16,7 @@ static struct { guint32 unicode[200]; } tests[] = { /* the escape char */ - { "&", "&-", + { "&", "&-", { 0x0026, } }, /* part of set D */ { "+", "+", -- cgit v1.2.1