From 4f9b82bc1df4ed8cb9871106a92c8a8b2a408835 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 7 Jun 2010 15:33:25 +0200 Subject: [PATCH] Fixed compiler warning. --- src/charon/charon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charon/charon.c b/src/charon/charon.c index c22b3058b..84cd54615 100644 --- a/src/charon/charon.c +++ b/src/charon/charon.c @@ -262,7 +262,7 @@ static void unlink_pidfile() * permissions on the parent dir(s) of the PID file */ if (pidfile) { - ftruncate(fileno(pidfile), 0); + ignore_result(ftruncate(fileno(pidfile), 0)); fclose(pidfile); } unlink(PID_FILE);