From c58f76a08d34337822c093b7bf2d2c30439a03f6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:32:49 -0700 Subject: Return nothing from two calls nobody checks --- source/cache.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/cache.c') diff --git a/source/cache.c b/source/cache.c index efe8185..be1a3c9 100644 --- a/source/cache.c +++ b/source/cache.c @@ -519,7 +519,7 @@ int cache_process(int size, const char *path, const char *key, int ttl, size_t m return result; } -int cache_ls(const char *path) +void cache_ls(const char *path) { DIR *dir; struct dirent *ent; @@ -536,7 +536,7 @@ int cache_ls(const char *path) if (!dir) { err = errno; fprintf(stderr, "[cgit] Unable to open %s: %s (%d)\n", path, strerror(err), err); - return err; + return; } strbuf_addstr(&slot_path, path); strbuf_ensure_end(&slot_path, '/'); @@ -569,5 +569,4 @@ int cache_ls(const char *path) } closedir(dir); strbuf_release(&slot_path); - return 0; } -- cgit