we need to use const * pointer to avoid gcc warning
This commit is contained in:
parent
4fa6d2b648
commit
7665817754
|
|
@ -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)
|
if(entry<(const void *)cache->e_head || entry>=(const void *)cache->e_stop)
|
||||||
return NULL;
|
return NULL;
|
||||||
/* find cache index */
|
/* 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;
|
return cache->k_head+cache->keysize*i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user