compilation fix

This commit is contained in:
cardigliano
2017-06-01 18:13:31 +02:00
parent 284bb21d61
commit 22b7b407c3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ typedef enum cache_result {
} cache_result; } cache_result;
typedef struct cache_t *cache_t; typedef struct cache *cache_t;
/** /**
+2 -2
View File
@@ -35,7 +35,7 @@ typedef struct cache_entry *cache_entry;
typedef struct cache_entry_map *cache_entry_map; typedef struct cache_entry_map *cache_entry_map;
struct cache_t { struct cache {
uint32_t size; uint32_t size;
uint32_t max_size; uint32_t max_size;
cache_entry head; cache_entry head;
@@ -85,7 +85,7 @@ cache_t cache_new(uint32_t cache_max_size) {
return NULL; return NULL;
} }
cache_t cache = (cache_t) calloc(sizeof(struct cache_t), 1); cache_t cache = (cache_t) calloc(sizeof(struct cache), 1);
if(!cache) { if(!cache) {
return NULL; return NULL;
} }