From 94715a4bf944946c06f3afec3ae0625ef1f45b28 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 10 Dec 2009 00:11:30 +0200 Subject: [PATCH] * mu-index.c: cosmetics --- src/mu-index.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/mu-index.c b/src/mu-index.c index adcacfbe..371a36c6 100644 --- a/src/mu-index.c +++ b/src/mu-index.c @@ -124,12 +124,14 @@ static MuResult run_msg_callback_maybe (MuIndexCallbackData *data) { if (data && data->_idx_msg_cb) { - MuResult result = - data->_idx_msg_cb (data->_stats, data->_user_data); + + MuResult result; + + result = data->_idx_msg_cb (data->_stats, data->_user_data); if (result != MU_OK && result != MU_STOP) - g_warning ("%s: callback said %d", - __FUNCTION__, result); + g_warning ("%s: callback said %d", __FUNCTION__, result); } + return MU_OK; } @@ -177,9 +179,9 @@ on_run_maildir_dir (const char* fullpath, gboolean enter, fullpath); else mu_store_xapian_set_timestamp (data->_xapian, fullpath, - time(NULL)); + time(NULL)); - if (data->_idx_dir_cb) + if (data->_idx_dir_cb) return data->_idx_dir_cb (fullpath, enter, data->_user_data); @@ -243,12 +245,13 @@ on_stats_maildir_file (const char *fullpath, time_t timestamp, else result = MU_OK; - if (result == MU_OK) { + if (result == MU_OK) { if (cb_data->_stats) ++cb_data->_stats->_processed; return MU_OK; - } else - return result; /* MU_STOP or MU_OK */ + } + + return result; /* MU_STOP or MU_OK */ }