diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2018-01-06 14:30:50 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2018-01-10 20:58:32 +0100 |
commit | d27d74d4702a2c5f466daf86e34f659879559645 (patch) | |
tree | f888b989ad8fedb2bce44541ff71ae0515895a5b | |
parent | 833af90905e63d1166f364ac5feebf3b75d8777e (diff) | |
download | ccache-d27d74d4702a2c5f466daf86e34f659879559645.tar.gz |
Fix grammar in cleanup_* function names
-rw-r--r-- | ccache.c | 4 | ||||
-rw-r--r-- | ccache.h | 4 | ||||
-rw-r--r-- | cleanup.c | 8 | ||||
-rw-r--r-- | stats.c | 2 |
4 files changed, 9 insertions, 9 deletions
@@ -1,7 +1,7 @@ // ccache -- a fast C/C++ compiler cache // // Copyright (C) 2002-2007 Andrew Tridgell -// Copyright (C) 2009-2017 Joel Rosdahl +// Copyright (C) 2009-2018 Joel Rosdahl // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free @@ -3342,7 +3342,7 @@ ccache_main_options(int argc, char *argv[]) case 'c': // --cleanup initialize(); - cleanup_all(conf); + clean_up_all(conf); printf("Cleaned cache\n"); break; @@ -217,8 +217,8 @@ void exitfn_call(void); // ---------------------------------------------------------------------------- // cleanup.c -void cleanup_dir(struct conf *conf, const char *dir); -void cleanup_all(struct conf *conf); +void clean_up_dir(struct conf *conf, const char *dir); +void clean_up_all(struct conf *conf); void wipe_all(struct conf *conf); // ---------------------------------------------------------------------------- @@ -170,7 +170,7 @@ sort_and_clean(void) // Clean up one cache subdirectory. void -cleanup_dir(struct conf *conf, const char *dir) +clean_up_dir(struct conf *conf, const char *dir) { cc_log("Cleaning up cache directory %s", dir); @@ -217,11 +217,11 @@ cleanup_dir(struct conf *conf, const char *dir) } // Clean up all cache subdirectories. -void cleanup_all(struct conf *conf) +void clean_up_all(struct conf *conf) { for (int i = 0; i <= 0xF; i++) { char *dname = format("%s/%1x", conf->cache_dir, i); - cleanup_dir(conf, dname); + clean_up_dir(conf, dname); free(dname); } } @@ -274,5 +274,5 @@ void wipe_all(struct conf *conf) } // Fix the counters. - cleanup_all(conf); + clean_up_all(conf); } @@ -395,7 +395,7 @@ stats_flush(void) } if (need_cleanup) { - cleanup_dir(conf, subdir); + clean_up_dir(conf, subdir); } free(subdir); |