From: Rusty Russell Date: Tue, 29 Sep 2009 03:24:29 +0000 (+0930) Subject: tools: fix compile warning under Ubuntu X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=d7ec8f0d41f7ccb67a4586d4f6f081cc4a9b895f tools: fix compile warning under Ubuntu --- diff --git a/tools/tools.c b/tools/tools.c index 4fbc6857..87ff4a3b 100644 --- a/tools/tools.c +++ b/tools/tools.c @@ -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; }