commit 7c78413efaf3000f09568a4b22be2cb585424609
parent e55a1f921effd0c2d24c0cd2b4f69880ac8dd58a
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 25 Jun 2013 12:58:12 +0000
-make clear that close return value is ignored intentionally
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c
@@ -37,7 +37,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
(0 != fstat (fd, &sbuf)) )
{
/* error accessing file */
- if (fd != -1) close (fd);
+ if (fd != -1)
+ (void) close (fd);
const char *errorstr =
"<html><body>An internal server error has occured!\
</body></html>";