From 3fe6eec8e0cfeafe49a4f2d550a59ee4dd5246b5 Mon Sep 17 00:00:00 2001 From: djcb Date: Thu, 20 Sep 2012 21:25:55 +0300 Subject: [PATCH] * cosmetics --- lib/mu-index.c | 12 ++++++------ lib/mu-index.h | 8 ++++---- lib/mu-util.h | 4 ++-- mu4e/mu4e-view.el | 3 ++- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/lib/mu-index.c b/lib/mu-index.c index 3463a6f2..961e6ee1 100644 --- a/lib/mu-index.c +++ b/lib/mu-index.c @@ -124,7 +124,7 @@ needs_index (MuIndexCallbackData *data, const char *fullpath, static MuError -insert_or_update_maybe (const char* fullpath, const char* mdir, +insert_or_update_maybe (const char *fullpath, const char *mdir, time_t filestamp, MuIndexCallbackData *data, gboolean *updated) { @@ -178,7 +178,7 @@ run_msg_callback_maybe (MuIndexCallbackData *data) static MuError -on_run_maildir_msg (const char* fullpath, const char* mdir, +on_run_maildir_msg (const char *fullpath, const char *mdir, struct stat *statbuf, MuIndexCallbackData *data) { MuError result; @@ -248,7 +248,7 @@ on_run_maildir_dir (const char* fullpath, gboolean enter, } static gboolean -check_path (const char* path) +check_path (const char *path) { g_return_val_if_fail (path, FALSE); @@ -310,7 +310,7 @@ mu_index_set_xbatch_size (MuIndex *index, guint xbatchsize) MuError -mu_index_run (MuIndex *index, const char* path, +mu_index_run (MuIndex *index, const char *path, gboolean reindex, MuIndexStats *stats, MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb, void *user_data) @@ -345,7 +345,7 @@ mu_index_run (MuIndex *index, const char* path, } static MuError -on_stats_maildir_file (const char *fullpath, const char* mdir, +on_stats_maildir_file (const char *fullpath, const char *mdir, struct stat *statbuf, MuIndexCallbackData *cb_data) { @@ -368,7 +368,7 @@ on_stats_maildir_file (const char *fullpath, const char* mdir, MuError -mu_index_stats (MuIndex *index, const char* path, +mu_index_stats (MuIndex *index, const char *path, MuIndexStats *stats, MuIndexMsgCallback cb_msg, MuIndexDirCallback cb_dir, void *user_data) { diff --git a/lib/mu-index.h b/lib/mu-index.h index b6faa235..46e7ac11 100644 --- a/lib/mu-index.h +++ b/lib/mu-index.h @@ -110,7 +110,7 @@ typedef MuError (*MuIndexMsgCallback) (MuIndexStats* stats, void *user_data); * case of some error. */ typedef MuError (*MuIndexDirCallback) (const char* path, gboolean enter, - void *user_data); + void *user_data); /** * start the indexing process @@ -131,7 +131,7 @@ typedef MuError (*MuIndexDirCallback) (const char* path, gboolean enter, * MU_STOP if the user stopped or MU_ERROR in * case of some error. */ -MuError mu_index_run (MuIndex *index, const char* path, gboolean force, +MuError mu_index_run (MuIndex *index, const char *path, gboolean force, MuIndexStats *stats, MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb, void *user_data); @@ -155,7 +155,7 @@ MuError mu_index_run (MuIndex *index, const char* path, gboolean force, * MU_STOP if the user stopped or MU_ERROR in * case of some error. */ -MuError mu_index_stats (MuIndex *index, const char* path, MuIndexStats *stats, +MuError mu_index_stats (MuIndex *index, const char *path, MuIndexStats *stats, MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb, void *user_data); @@ -169,7 +169,7 @@ MuError mu_index_stats (MuIndex *index, const char* path, MuIndexStats *stats, * @return a MuResult */ typedef MuError (*MuIndexCleanupDeleteCallback) (MuIndexStats *stats, - void *user_data); + void *user_data); /** * cleanup the database; ie. remove entries for which no longer a corresponding diff --git a/lib/mu-util.h b/lib/mu-util.h index b5b1eac8..d1f2f449 100644 --- a/lib/mu-util.h +++ b/lib/mu-util.h @@ -83,8 +83,8 @@ gchar* mu_util_guess_mu_homedir (void) * @return TRUE if a read/writeable directory `path' exists after * leaving this function, FALSE otherwise */ -gboolean mu_util_create_dir_maybe (const gchar *path, mode_t mode, gboolean nowarn) - G_GNUC_WARN_UNUSED_RESULT; +gboolean mu_util_create_dir_maybe (const gchar *path, mode_t mode, + gboolean nowarn) G_GNUC_WARN_UNUSED_RESULT; /** * check whether path is a directory, and optionally, if it's readable diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 373e1ba3..36714c9b 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -860,7 +860,8 @@ all messages in the thread at point in the headers view." (read-number (mu4e-format "%s (1-%d): " prompt count))) (progn (setq def (if (= count 1) "1" (format "1-%d" count))) - (read-string (mu4e-format "%s (default %s): " prompt def) nil nil def))))) + (read-string (mu4e-format "%s (default %s): " prompt def) + nil nil def))))) (defun mu4e~view-get-attach (msg attnum) "Return the attachment plist in MSG corresponding to attachment