configurator: Replace unlink with remove
[ccan] / tools / configurator / configurator.c
index 67dadc61eb8a550cea7c3a86f491458a64647e81..e322c76c72254f2f6089e0e5173978eaededd24d 100644 (file)
@@ -639,8 +639,8 @@ int main(int argc, const char *argv[])
                run_test(cmd, &tests[i]);
        free(cmd);
 
-       unlink(OUTPUT_FILE);
-       unlink(INPUT_FILE);
+       remove(OUTPUT_FILE);
+       remove(INPUT_FILE);
 
        printf("/* Generated by CCAN configurator */\n"
               "#ifndef CCAN_CONFIG_H\n"