we need to use const * pointer to avoid gcc warning

This commit is contained in:
Radim Kolar 2009-09-22 17:55:04 +02:00
parent 4fa6d2b648
commit 7665817754

View File

@ -291,7 +291,7 @@ void * f_cache_get_key(struct FifoCache *cache,const void *entry)
if(entry<(const void *)cache->e_head || entry>=(const void *)cache->e_stop)
return NULL;
/* find cache index */
i=((int8_t *)entry-cache->e_head)/cache->entrysize;
i=((const int8_t *)entry-cache->e_head)/cache->entrysize;
return cache->k_head+cache->keysize*i;
}