aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}