From d7ec8f0d41f7ccb67a4586d4f6f081cc4a9b895f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 29 Sep 2009 12:54:29 +0930 Subject: [PATCH] tools: fix compile warning under Ubuntu --- tools/tools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2