* <many> fix small conversion errors (-Wconversion)

This commit is contained in:
Dirk-Jan C. Binnema
2010-09-26 17:29:54 +03:00
parent 3fa552a81e
commit fb1651e184
11 changed files with 70 additions and 46 deletions

View File

@ -39,7 +39,7 @@ static void
ref_gmime (void)
{
if (G_UNLIKELY(_refcount == 0)) {
srandom (getpid()*time(NULL));
srandom ((unsigned)(getpid()*time(NULL)));
g_mime_init(0);
}
++_refcount;
@ -101,7 +101,8 @@ init_file_metadata (MuMsg* msg, const char* path, const gchar* mdir)
}
msg->_timestamp = statbuf.st_mtime;
msg->_size = statbuf.st_size;
/* size_t should be enough for message size... */
msg->_size = (size_t)statbuf.st_size;
msg->_fields[PATH_FIELD] = strdup (path);
/* FIXME: maybe try to derive it from the path? */
@ -362,7 +363,7 @@ mu_msg_get_flags (MuMsg *msg)
size_t
mu_msg_get_size (MuMsg *msg)
{
g_return_val_if_fail (msg, -1);
g_return_val_if_fail (msg, 0);
return msg->_size;
}