* cosmetics

This commit is contained in:
djcb 2012-09-20 21:25:55 +03:00
parent d7ef2166a7
commit 3fe6eec8e0
4 changed files with 14 additions and 13 deletions

View File

@ -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)
{

View File

@ -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

View File

@ -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

View File

@ -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