summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2018-01-06 14:30:50 +0100
committerJoel Rosdahl <joel@rosdahl.net>2018-01-10 20:58:32 +0100
commitd27d74d4702a2c5f466daf86e34f659879559645 (patch)
treef888b989ad8fedb2bce44541ff71ae0515895a5b
parent833af90905e63d1166f364ac5feebf3b75d8777e (diff)
downloadccache-d27d74d4702a2c5f466daf86e34f659879559645.tar.gz
Fix grammar in cleanup_* function names
-rw-r--r--ccache.c4
-rw-r--r--ccache.h4
-rw-r--r--cleanup.c8
-rw-r--r--stats.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/ccache.c b/ccache.c
index 7d05af4d..099380b6 100644
--- a/ccache.c
+++ b/ccache.c
@@ -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;
diff --git a/ccache.h b/ccache.h
index 2c5d64dd..2bae451b 100644
--- a/ccache.h
+++ b/ccache.h
@@ -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);
// ----------------------------------------------------------------------------
diff --git a/cleanup.c b/cleanup.c
index f6f363f1..bbd13800 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -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);
}
diff --git a/stats.c b/stats.c
index 4576c3c5..e07a2a9b 100644
--- a/stats.c
+++ b/stats.c
@@ -395,7 +395,7 @@ stats_flush(void)
}
if (need_cleanup) {
- cleanup_dir(conf, subdir);
+ clean_up_dir(conf, subdir);
}
free(subdir);