mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-05 19:15:12 +00:00
compilation fix
This commit is contained in:
parent
284bb21d61
commit
22b7b407c3
2 changed files with 3 additions and 3 deletions
2
src/lib/third_party/include/libcache.h
vendored
2
src/lib/third_party/include/libcache.h
vendored
|
|
@ -25,7 +25,7 @@ typedef enum cache_result {
|
|||
} cache_result;
|
||||
|
||||
|
||||
typedef struct cache_t *cache_t;
|
||||
typedef struct cache *cache_t;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
4
src/lib/third_party/src/libcache.c
vendored
4
src/lib/third_party/src/libcache.c
vendored
|
|
@ -35,7 +35,7 @@ typedef struct cache_entry *cache_entry;
|
|||
|
||||
typedef struct cache_entry_map *cache_entry_map;
|
||||
|
||||
struct cache_t {
|
||||
struct cache {
|
||||
uint32_t size;
|
||||
uint32_t max_size;
|
||||
cache_entry head;
|
||||
|
|
@ -85,7 +85,7 @@ cache_t cache_new(uint32_t cache_max_size) {
|
|||
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) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue