From 43211abb65d9d662a31d7f19d6820b6108e94889 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 18 Mar 2010 00:00:05 +0000 Subject: [PATCH] * lib/commonio.c: Ignore the return value of close when a failure is reported. --- lib/commonio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commonio.c b/lib/commonio.c index fa37704c7..ec5018dac 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -565,7 +565,7 @@ int commonio_open (struct commonio_db *db, int mode) if (fd >= 0) { #ifdef WITH_TCB if (tcb_is_suspect (fd) != 0) { - close (fd); + (void) close (fd); errno = EINVAL; return 0; } -- 2.47.3