]> git.ozlabs.org Git - ccan/blobdiff - tools/tools.c
tools: fix compile warning under Ubuntu
[ccan] / tools / tools.c
index 4fbc6857c2b7e72fb1300e5102cc89289dda9f7c..87ff4a3b65f4fe9899cf8aebb6e99a40cd244221 100644 (file)
@@ -79,7 +79,8 @@ static int unlink_all(char *dir)
 {
        char cmd[strlen(dir) + sizeof("rm -rf ")];
        sprintf(cmd, "rm -rf %s", dir);
-       system(cmd);
+       if (system(cmd) != 0)
+               warn("Could not remove temporary work in %s", dir);
        return 0;
 }