diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-14 04:19:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-02-14 04:19:04 +0100 |
commit | bf5c5c10f480a01da85ac47ef288f2c2bfea3444 (patch) | |
tree | 1aa826f517cb2e4240b10bbdb94ba008074e3644 /src/lib/response_from_fd.c | |
parent | 48dd53c7eb6a0ec3f47c23511bcf94d3f6f52e24 (diff) | |
download | libmicrohttpd-bf5c5c10f480a01da85ac47ef288f2c2bfea3444.tar.gz libmicrohttpd-bf5c5c10f480a01da85ac47ef288f2c2bfea3444.zip |
fixing misc build issues, mostly in the new src/lib/
Diffstat (limited to 'src/lib/response_from_fd.c')
-rw-r--r-- | src/lib/response_from_fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/response_from_fd.c b/src/lib/response_from_fd.c index ea486600..cdeb7aa5 100644 --- a/src/lib/response_from_fd.c +++ b/src/lib/response_from_fd.c | |||
@@ -180,7 +180,8 @@ MHD_response_from_fd (enum MHD_HTTP_StatusCode sc, | |||
180 | ((int64_t) (size + offset) < 0) ) | 180 | ((int64_t) (size + offset) < 0) ) |
181 | return NULL; | 181 | return NULL; |
182 | 182 | ||
183 | response = MHD_response_from_callback (size, | 183 | response = MHD_response_from_callback (sc, |
184 | size, | ||
184 | 4 * 1024, | 185 | 4 * 1024, |
185 | &file_reader, | 186 | &file_reader, |
186 | NULL, | 187 | NULL, |
@@ -188,7 +189,6 @@ MHD_response_from_fd (enum MHD_HTTP_StatusCode sc, | |||
188 | if (NULL == response) | 189 | if (NULL == response) |
189 | return NULL; | 190 | return NULL; |
190 | response->fd = fd; | 191 | response->fd = fd; |
191 | response->status_code = sc; | ||
192 | response->fd_off = offset; | 192 | response->fd_off = offset; |
193 | response->crc_cls = response; | 193 | response->crc_cls = response; |
194 | return response; | 194 | return response; |