aboutsummaryrefslogtreecommitdiffstats
path: root/src/ccache.cpp
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-03-10 19:51:39 +0100
committerJoel Rosdahl <joel@rosdahl.net>2020-03-10 21:05:01 +0100
commit67e0b816fe17b521aae700de16467df0f51c064f (patch)
tree3f07acd708fe32c3e777af588ea073f4fd227384 /src/ccache.cpp
parentc181fdd983376014e6c27b6e0b64af9a7e0eb7e3 (diff)
downloadccache-67e0b816fe17b521aae700de16467df0f51c064f.tar.gz
ccache-67e0b816fe17b521aae700de16467df0f51c064f.tar.bz2
ccache-67e0b816fe17b521aae700de16467df0f51c064f.zip
Use tmp_unlink to remove temporary file in use_relative_paths_in_depfile
No need to remove via another temporary file. (cherry picked from commit c74b625aaa46db85797a691c81f129834c7fd82e)
Diffstat (limited to 'src/ccache.cpp')
-rw-r--r--src/ccache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ccache.cpp b/src/ccache.cpp
index 81779811..97c57a96 100644
--- a/src/ccache.cpp
+++ b/src/ccache.cpp
@@ -953,7 +953,7 @@ out:
}
if (!result) {
cc_log("Removing temporary dependency file: %s", tmp_file);
- x_unlink(tmp_file);
+ tmp_unlink(tmp_file);
}
free(tmp_file);
}