libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit c461ee5489068066b9752ef9de179f3ccf75015b
parent 2ece82f12eaa7710f044cadb87d7e9890e4c2e05
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue,  9 Jun 2015 19:34:53 +0000

Bump MHD_VERSION, update ChangeLog, substitute MHD_create_response_from_fd_at_offset64() instead of MHD_create_response_from_fd_at_offset()

Diffstat:
MChangeLog | 4++++
Msrc/include/microhttpd.h | 8+++++++-
Msrc/microhttpd/response.c | 1+
3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 09 18:30:17 CEST 2015 + Add new functions MHD_create_response_from_fd64() and + MHD_create_response_from_fd_at_offset64(). -EG + Thu Jun 4 13:37:05 CEST 2015 Fixing memory leak in digest authentication. -AW diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -130,7 +130,7 @@ typedef intptr_t ssize_t; * Current version of the library. * 0x01093001 = 1.9.30-1. */ -#define MHD_VERSION 0x00094202 +#define MHD_VERSION 0x00094203 /** * MHD-internal return code for "YES". @@ -2121,6 +2121,12 @@ MHD_create_response_from_fd_at_offset (size_t size, int fd, off_t offset); +/* Substitute MHD_create_response_from_fd_at_offset64() instead of MHD_create_response_from_fd_at_offset() + to minimize possible problems with different off_t options */ +#define MHD_create_response_from_fd_at_offset(size,fd,offset) \ + _MHD_DEPR_MACRO("Usage of MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \ + MHD_create_response_from_fd_at_offset64((size),(fd),(offset)) + /** * Create a response object. The response object can be extended with diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -378,6 +378,7 @@ free_callback (void *cls) response->fd = -1; } +#undef MHD_create_response_from_fd_at_offset /** * Create a response object. The response object can be extended with