]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use x_unlink instead of unlink per HACKING.txt
authorChiaki ISHIKAWA <ishikawa@yk.rim.or.jp>
Tue, 10 Mar 2015 12:28:27 +0000 (21:28 +0900)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 14 Mar 2015 15:15:12 +0000 (16:15 +0100)
ccache.c

index ac2b915b810e819f66f5067bd2697b516d536cdf..44383d1bd0e122a8c0d411f2559f4309c230e9d2 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -954,7 +954,7 @@ to_cache(struct args *args)
                 * previous ccache versions. */
                if (getpid() % 1000 == 0) {
                        char *path = format("%s/CACHEDIR.TAG", conf->cache_dir);
-                       unlink(path);
+                       x_unlink(path);
                        free(path);
                }
        }