next pointers in fifocache must be int8_t also

This commit is contained in:
Radim Kolar 2009-09-22 17:48:36 +02:00
parent b7a2d77f86
commit a876e9d6c8

View File

@ -12,11 +12,11 @@ struct FifoCache
{ {
unsigned int cachesize; /* max. number of entries */ unsigned int cachesize; /* max. number of entries */
int8_t *e_head;/* block of cache entries, every entry has entrysize bytes */ int8_t *e_head;/* block of cache entries, every entry has entrysize bytes */
void *e_next; /* new intem will be placed there */ int8_t *e_next; /* new intem will be placed there */
const void *e_stop; /* stop mark for entries, never write here! */ const void *e_stop; /* stop mark for entries, never write here! */
unsigned int entrysize; /* size of 1 entry in bytes */ unsigned int entrysize; /* size of 1 entry in bytes */
int8_t *k_head; /* block of keys starts there */ int8_t *k_head; /* block of keys starts there */
void *k_next; /* new item */ int8_t *k_next; /* new item */
const void *k_stop; /* stop mark for key entries */ const void *k_stop; /* stop mark for key entries */
unsigned int keysize; /* size of 1 key in bytes */ unsigned int keysize; /* size of 1 key in bytes */
void (*k_destroy_func) (void *key); /* key destoy function */ void (*k_destroy_func) (void *key); /* key destoy function */