X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ffcache.c;h=2f7648663463534008d102f10150a3b982041831;hb=638717706c4f1b87d8a24d0e443c39e59e99b0d3;hp=1e10a193c056d1fced43dd4ec8704734556ba8bd;hpb=1b5e970c9fa6bda525f8c8ab5d2ea001084c7db7;p=ppastats.git diff --git a/src/fcache.c b/src/fcache.c index 1e10a19..2f76486 100644 --- a/src/fcache.c +++ b/src/fcache.c @@ -83,18 +83,18 @@ char *fcache_get(const char *key) } content = file_get_content(path); - + if (content) log_debug(_("file cache hit %s"), key); else log_debug(_("file cache miss %s %s"), key, path); - + free(path); - + return content; } - -void fcache_put(const char *key, char *value) + +void fcache_put(const char *key, const char *value) { char *path, *dir, *tmp; FILE *f;