warning suppression

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2411 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-02-23 22:30:51 +00:00
parent 80b44220fb
commit e4a508ab5b
2 changed files with 3 additions and 3 deletions

View File

@ -242,7 +242,7 @@ bool ftExtraList::cleanupOldFiles()
for(it = mFiles.begin(); it != mFiles.end(); it++) for(it = mFiles.begin(); it != mFiles.end(); it++)
{ {
/* check timestamps */ /* check timestamps */
if (it->second.info.age < (unsigned) now) if ((time_t)it->second.info.age < now)
{ {
toRemove.push_back(it->first); toRemove.push_back(it->first);
} }
@ -432,7 +432,7 @@ bool ftExtraList::loadList(std::list<RsItem *> load)
fclose(fd); fclose(fd);
if (ts > fi->file.age) if (ts > (time_t)fi->file.age)
{ {
/* to old */ /* to old */
cleanupEntry(fi->file.path, fi->flags); cleanupEntry(fi->file.path, fi->flags);

View File

@ -334,7 +334,7 @@ bool p3Channels::locked_eventDuplicateMsg(GroupInfo *grp, RsDistribMsg *msg, std
/* check age */ /* check age */
time_t age = time(NULL) - msg->timestamp; time_t age = time(NULL) - msg->timestamp;
if (age > DOWNLOAD_PERIOD) if (age > (time_t)DOWNLOAD_PERIOD)
{ {
return true; return true;
} }