* mu-index.c: cosmetics

This commit is contained in:
Dirk-Jan C. Binnema 2009-12-10 00:11:30 +02:00
parent 7a997a4d98
commit 94715a4bf9
1 changed files with 12 additions and 9 deletions

View File

@ -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;
}
@ -247,7 +249,8 @@ on_stats_maildir_file (const char *fullpath, time_t timestamp,
if (cb_data->_stats)
++cb_data->_stats->_processed;
return MU_OK;
} else
}
return result; /* MU_STOP or MU_OK */
}