diff options
-rw-r--r-- | cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | struct cache_slot { | 25 | struct cache_slot { |
26 | const char *key; | 26 | const char *key; |
27 | int keylen; | 27 | size_t keylen; |
28 | int ttl; | 28 | int ttl; |
29 | cache_fill_fn fn; | 29 | cache_fill_fn fn; |
30 | int cache_fd; | 30 | int cache_fd; |
@@ -44,7 +44,7 @@ struct cache_slot { | |||
44 | static int open_slot(struct cache_slot *slot) | 44 | static int open_slot(struct cache_slot *slot) |
45 | { | 45 | { |
46 | char *bufz; | 46 | char *bufz; |
47 | int bufkeylen = -1; | 47 | ssize_t bufkeylen = -1; |
48 | 48 | ||
49 | slot->cache_fd = open(slot->cache_name, O_RDONLY); | 49 | slot->cache_fd = open(slot->cache_name, O_RDONLY); |
50 | if (slot->cache_fd == -1) | 50 | if (slot->cache_fd == -1) |