Ignore:
Timestamp:
Aug 11, 2009, 10:56:57 PM (13 years ago)
Author:
Sam Hocevar
Message:

Fix numerous compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/cache.cpp

    r147 r162  
    511511    }
    512512   
    513     uint32_t tsaved=fp->read_uint32();
     513    int tsaved = fp->read_uint32();
    514514
    515515
     
    11931193void CacheList::free_oldest()
    11941194{
    1195   uint32_t i,old_time=last_access;
     1195  int32_t old_time = last_access;
    11961196  CacheItem *ci=list,*oldest=NULL;
    11971197  ful=1;
    11981198
    1199   for (i=0;i<total;i++,ci++)
    1200   {
    1201     if (ci->data && ci->last_access<old_time)
    1202     {
    1203       oldest=ci;
    1204       old_time=ci->last_access;
     1199  for (int i = 0; i < total; i++, ci++)
     1200  {
     1201    if (ci->data && ci->last_access < old_time)
     1202    {
     1203      oldest = ci;
     1204      old_time = ci->last_access;
    12051205    }
    12061206  }
Note: See TracChangeset for help on using the changeset viewer.