X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/22b9fa74de8e80471a5033ea067d3b360930b91d..0e843521df080e255a855565e210b7e0caa64511:/lib/cache.c?ds=sidebyside diff --git a/lib/cache.c b/lib/cache.c index bc6bc81..faca540 100644 --- a/lib/cache.c +++ b/lib/cache.c @@ -84,6 +84,7 @@ const void *cache_get(const struct cache_type *type, const char *key) { return 0; } +/** @brief Call used by from cache_expire() */ static int expiry_callback(const char *key, void *value, void *u) { const struct cache_entry *c = value; const time_t *now = u; @@ -105,6 +106,7 @@ void cache_expire(void) { } } +/** @brief Callback used by cache_clean() */ static int clean_callback(const char *key, void *value, void *u) { const struct cache_entry *c = value; const struct cache_type *type = u;