compilation fix
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ typedef enum cache_result {
|
|||||||
} cache_result;
|
} cache_result;
|
||||||
|
|
||||||
|
|
||||||
typedef struct cache_t *cache_t;
|
typedef struct cache *cache_t;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Vendored
+2
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user