]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use tmp_unlink to remove temporary file in use_relative_paths_in_depfile
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 10 Mar 2020 18:51:39 +0000 (19:51 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 10 Mar 2020 18:51:39 +0000 (19:51 +0100)
No need to remove via another temporary file.

src/ccache.c

index 0ac018d8facccce2a50409387a2c5bfd241fdf40..6e9da51c2a9700a822ed7b059ace2bd6dca85c41 100644 (file)
@@ -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);
 }