* mu-msg-str: use G_GNUC_WARN_UNUSED_RESULT where it makes sense

This commit is contained in:
Dirk-Jan C. Binnema
2010-01-08 20:52:11 +02:00
parent d95193d718
commit abc3c247ee
2 changed files with 6 additions and 3 deletions

View File

@ -44,7 +44,10 @@ mu_msg_str_date (time_t t)
const char*
mu_msg_str_size_s (size_t s)
{
/* note: we we use the powers-of-10, not powers-of-2 */
static char buf[32];
if (s >= 1000 * 1000)
g_snprintf(buf, 32, "%.1fM", (double)s/(1000*1000));
else