aboutsummaryrefslogtreecommitdiff
path: root/src/lib/third_party
diff options
context:
space:
mode:
authorcardigliano <cardigliano@ntop.org>2017-06-01 18:13:31 +0200
committercardigliano <cardigliano@ntop.org>2017-06-01 18:13:31 +0200
commit22b7b407c32dfa7fedb017b64d4a8e2905a483b4 (patch)
treee1aeff9af2c70a9bc49d3e4566ffcff59df0e1e6 /src/lib/third_party
parent284bb21d610d4a2c877cd0258076300cbc4fa3aa (diff)
compilation fix
Diffstat (limited to 'src/lib/third_party')
-rw-r--r--src/lib/third_party/include/libcache.h2
-rw-r--r--src/lib/third_party/src/libcache.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/third_party/include/libcache.h b/src/lib/third_party/include/libcache.h
index 1f240854f..da3e9411f 100644
--- a/src/lib/third_party/include/libcache.h
+++ b/src/lib/third_party/include/libcache.h
@@ -25,7 +25,7 @@ typedef enum cache_result {
} cache_result;
-typedef struct cache_t *cache_t;
+typedef struct cache *cache_t;
/**
diff --git a/src/lib/third_party/src/libcache.c b/src/lib/third_party/src/libcache.c
index d5545beae..bc16d37dc 100644
--- a/src/lib/third_party/src/libcache.c
+++ b/src/lib/third_party/src/libcache.c
@@ -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;
}