diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-25 12:58:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-25 12:58:12 +0000 |
commit | 7c78413efaf3000f09568a4b22be2cb585424609 (patch) | |
tree | 14aab06d529313bca80efdc1bd5db446a5cb3c39 /doc | |
parent | e55a1f921effd0c2d24c0cd2b4f69880ac8dd58a (diff) | |
download | libmicrohttpd-7c78413efaf3000f09568a4b22be2cb585424609.tar.gz libmicrohttpd-7c78413efaf3000f09568a4b22be2cb585424609.zip |
-make clear that close return value is ignored intentionally
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/responseheaders.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c index ef6b7c45..25cca43e 100644 --- a/doc/examples/responseheaders.c +++ b/doc/examples/responseheaders.c | |||
@@ -37,7 +37,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
37 | (0 != fstat (fd, &sbuf)) ) | 37 | (0 != fstat (fd, &sbuf)) ) |
38 | { | 38 | { |
39 | /* error accessing file */ | 39 | /* error accessing file */ |
40 | if (fd != -1) close (fd); | 40 | if (fd != -1) |
41 | (void) close (fd); | ||
41 | const char *errorstr = | 42 | const char *errorstr = |
42 | "<html><body>An internal server error has occured!\ | 43 | "<html><body>An internal server error has occured!\ |
43 | </body></html>"; | 44 | </body></html>"; |