commit 0b37868baf51c5278a8e31fde4116a6d0104d21f
parent a6458cd3a9852b446b963e277e4269837a89a7df
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 21 Sep 2016 16:18:00 +0000
Fixed compiling examples on old compilers.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c
@@ -36,12 +36,12 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
if ( (-1 == (fd = open (FILENAME, O_RDONLY))) ||
(0 != fstat (fd, &sbuf)) )
{
- /* error accessing file */
- if (fd != -1)
- (void) close (fd);
const char *errorstr =
"<html><body>An internal server error has occured!\
</body></html>";
+ /* error accessing file */
+ if (fd != -1)
+ (void) close (fd);
response =
MHD_create_response_from_buffer (strlen (errorstr),
(void *) errorstr,