From: Joel Rosdahl Date: Tue, 10 Mar 2020 18:51:39 +0000 (+0100) Subject: Use tmp_unlink to remove temporary file in use_relative_paths_in_depfile X-Git-Tag: v3.7.8~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c74b625aaa46db85797a691c81f129834c7fd82e;p=thirdparty%2Fccache.git Use tmp_unlink to remove temporary file in use_relative_paths_in_depfile No need to remove via another temporary file. --- diff --git a/src/ccache.c b/src/ccache.c index 0ac018d8f..6e9da51c2 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -1156,7 +1156,7 @@ out: } if (!result) { cc_log("Removing temporary dependency file: %s", tmp_file); - x_unlink(tmp_file); + tmp_unlink(tmp_file); } free(tmp_file); }