diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-06-09 19:34:53 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-06-09 19:34:53 +0000 |
commit | c461ee5489068066b9752ef9de179f3ccf75015b (patch) | |
tree | 9d19be10ad33e2420a3e6c18b6c69cc6f9f863a8 | |
parent | 2ece82f12eaa7710f044cadb87d7e9890e4c2e05 (diff) | |
download | libmicrohttpd-c461ee5489068066b9752ef9de179f3ccf75015b.tar.gz libmicrohttpd-c461ee5489068066b9752ef9de179f3ccf75015b.zip |
Bump MHD_VERSION, update ChangeLog, substitute MHD_create_response_from_fd_at_offset64() instead of MHD_create_response_from_fd_at_offset()
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/include/microhttpd.h | 8 | ||||
-rw-r--r-- | src/microhttpd/response.c | 1 |
3 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,7 @@ | |||
1 | Tue Jun 09 18:30:17 CEST 2015 | ||
2 | Add new functions MHD_create_response_from_fd64() and | ||
3 | MHD_create_response_from_fd_at_offset64(). -EG | ||
4 | |||
1 | Thu Jun 4 13:37:05 CEST 2015 | 5 | Thu Jun 4 13:37:05 CEST 2015 |
2 | Fixing memory leak in digest authentication. -AW | 6 | Fixing memory leak in digest authentication. -AW |
3 | 7 | ||
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 995974a9..2269ec1a 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -130,7 +130,7 @@ typedef intptr_t ssize_t; | |||
130 | * Current version of the library. | 130 | * Current version of the library. |
131 | * 0x01093001 = 1.9.30-1. | 131 | * 0x01093001 = 1.9.30-1. |
132 | */ | 132 | */ |
133 | #define MHD_VERSION 0x00094202 | 133 | #define MHD_VERSION 0x00094203 |
134 | 134 | ||
135 | /** | 135 | /** |
136 | * MHD-internal return code for "YES". | 136 | * MHD-internal return code for "YES". |
@@ -2121,6 +2121,12 @@ MHD_create_response_from_fd_at_offset (size_t size, | |||
2121 | int fd, | 2121 | int fd, |
2122 | off_t offset); | 2122 | off_t offset); |
2123 | 2123 | ||
2124 | /* Substitute MHD_create_response_from_fd_at_offset64() instead of MHD_create_response_from_fd_at_offset() | ||
2125 | to minimize possible problems with different off_t options */ | ||
2126 | #define MHD_create_response_from_fd_at_offset(size,fd,offset) \ | ||
2127 | _MHD_DEPR_MACRO("Usage of MHD_create_response_from_fd_at_offset() is deprecated, use MHD_create_response_from_fd_at_offset64()") \ | ||
2128 | MHD_create_response_from_fd_at_offset64((size),(fd),(offset)) | ||
2129 | |||
2124 | 2130 | ||
2125 | /** | 2131 | /** |
2126 | * Create a response object. The response object can be extended with | 2132 | * Create a response object. The response object can be extended with |
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 5d68828d..cff5e5dc 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -378,6 +378,7 @@ free_callback (void *cls) | |||
378 | response->fd = -1; | 378 | response->fd = -1; |
379 | } | 379 | } |
380 | 380 | ||
381 | #undef MHD_create_response_from_fd_at_offset | ||
381 | 382 | ||
382 | /** | 383 | /** |
383 | * Create a response object. The response object can be extended with | 384 | * Create a response object. The response object can be extended with |