]> git.ozlabs.org Git - ccan/blobdiff - tools/namespacize.c
ccanlint: add test to look for modules we use but don't list in _info.
[ccan] / tools / namespacize.c
index 77269aac317dac5a4d7c7b319aa794472739f116..545b28bb1a4f7d2dcd138b9a4fe9325907b81502 100644 (file)
@@ -406,7 +406,7 @@ static void setup_adjust_files(const char *dir,
 static void rename_files(const struct adjusted *adj)
 {
        while (adj) {
-               if (rename(adj->tmpfile, adj->file) != 0)
+               if (!move_file(adj->tmpfile, adj->file))
                        warn("Could not rename over '%s', we're in trouble",
                             adj->file);
                adj = adj->next;