]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Rename test_if_compressed() to file_is_compressed()
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 12 Sep 2010 14:36:48 +0000 (16:36 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 12 Sep 2010 14:36:48 +0000 (16:36 +0200)
ccache.c
ccache.h
util.c

index ef99d814f80e1f0442553213f186ff90c285c5e1..c8c65892d5120577169041304c8a965a1651f364 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -995,7 +995,7 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest)
        } else {
                unlink(output_obj);
                /* only make a hardlink if the cache file is uncompressed */
-               if (getenv("CCACHE_HARDLINK") && test_if_compressed(cached_obj) == 0) {
+               if (getenv("CCACHE_HARDLINK") && file_is_compressed(cached_obj) == 0) {
                        ret = link(cached_obj, output_obj);
                } else {
                        ret = copy_file(cached_obj, output_obj, 0);
@@ -1025,7 +1025,7 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest)
        if (produce_dep_file) {
                unlink(output_dep);
                /* only make a hardlink if the cache file is uncompressed */
-               if (getenv("CCACHE_HARDLINK") && test_if_compressed(cached_dep) == 0) {
+               if (getenv("CCACHE_HARDLINK") && file_is_compressed(cached_dep) == 0) {
                        ret = link(cached_dep, output_dep);
                } else {
                        ret = copy_file(cached_dep, output_dep, 0);
index eb6b282eb4d62bd25b265996799d4999ddf934a0..9643b6c562d2dfca997d0e5264c6647b4ace6071 100644 (file)
--- a/ccache.h
+++ b/ccache.h
@@ -106,7 +106,7 @@ int copy_file(const char *src, const char *dest, int compress_dest);
 int move_file(const char *src, const char *dest, int compress_dest);
 int move_uncompressed_file(const char *src, const char *dest,
                            int compress_dest);
-bool test_if_compressed(const char *filename);
+bool file_is_compressed(const char *filename);
 
 int create_dir(const char *dir);
 const char *get_hostname(void);
diff --git a/util.c b/util.c
index 1cf9192605a5ded36cb5ad3437b166fbfb5678be..ff6ff151721c0e9916fe433b2e16bb892003d6e4 100644 (file)
--- a/util.c
+++ b/util.c
@@ -333,7 +333,7 @@ move_uncompressed_file(const char *src, const char *dest, int compress_dest)
 
 /* test if a file is zlib compressed */
 bool
-test_if_compressed(const char *filename)
+file_is_compressed(const char *filename)
 {
        FILE *f;