From: Joel Rosdahl Date: Mon, 23 Apr 2018 19:44:56 +0000 (+0200) Subject: Remove irrelevant variable assignment in wipe_dir X-Git-Tag: v3.4.3~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a71ae4d8a20b44c0588d1b5d83109653930f28e;p=thirdparty%2Fccache.git Remove irrelevant variable assignment in wipe_dir --- diff --git a/src/cleanup.c b/src/cleanup.c index 8c46eac59..c6273ecdf 100644 --- a/src/cleanup.c +++ b/src/cleanup.c @@ -236,11 +236,10 @@ static void wipe_fn(const char *fname, struct stat *st) // Wipe one cache subdirectory. void -wipe_dir(struct conf *conf, const char *dir) +wipe_dir(const char *dir) { cc_log("Clearing out cache directory %s", dir); - files_in_cache_threshold = conf->max_files * conf->limit_multiple / 16; files_in_cache = 0; traverse(dir, wipe_fn); @@ -258,7 +257,7 @@ void wipe_all(struct conf *conf) { for (int i = 0; i <= 0xF; i++) { char *dname = format("%s/%1x", conf->cache_dir, i); - wipe_dir(conf, dname); + wipe_dir(dname); free(dname); }