[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36088 - libmicrohttpd/doc/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36088 - libmicrohttpd/doc/examples |
Date: |
Wed, 15 Jul 2015 14:58:56 +0200 |
Author: grothoff
Date: 2015-07-15 14:58:56 +0200 (Wed, 15 Jul 2015)
New Revision: 36088
Modified:
libmicrohttpd/doc/examples/responseheaders.c
Log:
-modernize example
Modified: libmicrohttpd/doc/examples/responseheaders.c
===================================================================
--- libmicrohttpd/doc/examples/responseheaders.c 2015-07-15 12:49:07 UTC
(rev 36087)
+++ libmicrohttpd/doc/examples/responseheaders.c 2015-07-15 12:58:56 UTC
(rev 36088)
@@ -43,8 +43,8 @@
"<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 @@
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36088 - libmicrohttpd/doc/examples,
gnunet <=