commit 3800d3820b0158c1a8cab81ac37064d0695c71b9
parent b118d605ac47c802bd4737476c7d76318c30980e
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 15 Jul 2015 12:58:56 +0000
-modernize example
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c
@@ -43,8 +43,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
"<html><body>An internal server error has occured!\
</body></html>";
response =
- MHD_create_response_from_buffer (strlen (errorstr),
- (void *) errorstr,
+ MHD_create_response_from_buffer (strlen (errorstr),
+ (void *) errorstr,
MHD_RESPMEM_PERSISTENT);
if (NULL != response)
{
@@ -59,7 +59,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
return MHD_NO;
}
response =
- MHD_create_response_from_fd_at_offset (sbuf.st_size, fd, 0);
+ MHD_create_response_from_fd_at_offset64 (sbuf.st_size, fd, 0);
MHD_add_response_header (response, "Content-Type", MIMETYPE);
ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);