aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-07-24 18:10:31 +0200
committerChristian Grothoff <christian@grothoff.org>2019-07-24 18:10:31 +0200
commitd67b93a2c6c9f0b65f49b24d1b43b7c18511689c (patch)
tree6d99ea7a35538f1da64d7661fa6aa10a4545809e
parenteb3035f63a5674cc3642a46b0d1b42f299fb0dea (diff)
downloadlibmicrohttpd-d67b93a2c6c9f0b65f49b24d1b43b7c18511689c.tar.gz
libmicrohttpd-d67b93a2c6c9f0b65f49b24d1b43b7c18511689c.zip
indent
-rw-r--r--src/microhttpd/connection.c14
-rw-r--r--src/microhttpd/response.c14
2 files changed, 14 insertions, 14 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 03f8e192..fdabdbcb 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3420,13 +3420,13 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
3420 } 3420 }
3421 else 3421 else
3422 { 3422 {
3423 ret = MHD_send_on_connection2_ (connection, 3423 ret = MHD_send_on_connection2_ (connection,
3424 &connection->write_buffer 3424 &connection->write_buffer
3425 [connection->write_buffer_send_offset], 3425 [connection->write_buffer_send_offset],
3426 connection->write_buffer_append_offset - 3426 connection->write_buffer_append_offset -
3427 connection->write_buffer_send_offset, 3427 connection->write_buffer_send_offset,
3428 connection->response->data, 3428 connection->response->data,
3429 connection->response->data_buffer_size); 3429 connection->response->data_buffer_size);
3430 } 3430 }
3431 3431
3432 if (ret < 0) 3432 if (ret < 0)
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 035e3054..6e569d77 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -195,7 +195,7 @@ MHD_add_response_footer (struct MHD_Response *response,
195int 195int
196MHD_del_response_header (struct MHD_Response *response, 196MHD_del_response_header (struct MHD_Response *response,
197 const char *header, 197 const char *header,
198 const char *content) 198 const char *content)
199{ 199{
200 struct MHD_HTTP_Header *pos; 200 struct MHD_HTTP_Header *pos;
201 struct MHD_HTTP_Header *prev; 201 struct MHD_HTTP_Header *prev;
@@ -558,8 +558,8 @@ free_callback (void *cls)
558 */ 558 */
559struct MHD_Response * 559struct MHD_Response *
560MHD_create_response_from_fd_at_offset (size_t size, 560MHD_create_response_from_fd_at_offset (size_t size,
561 int fd, 561 int fd,
562 off_t offset) 562 off_t offset)
563{ 563{
564 return MHD_create_response_from_fd_at_offset64 (size, 564 return MHD_create_response_from_fd_at_offset64 (size,
565 fd, 565 fd,
@@ -604,9 +604,9 @@ MHD_create_response_from_fd_at_offset64 (uint64_t size,
604 604
605 response = MHD_create_response_from_callback (size, 605 response = MHD_create_response_from_callback (size,
606 MHD_FILE_READ_BLOCK_SIZE, 606 MHD_FILE_READ_BLOCK_SIZE,
607 &file_reader, 607 &file_reader,
608 NULL, 608 NULL,
609 &free_callback); 609 &free_callback);
610 if (NULL == response) 610 if (NULL == response)
611 return NULL; 611 return NULL;
612 response->fd = fd; 612 response->fd = fd;
@@ -627,7 +627,7 @@ MHD_create_response_from_fd_at_offset64 (uint64_t size,
627 */ 627 */
628struct MHD_Response * 628struct MHD_Response *
629MHD_create_response_from_fd (size_t size, 629MHD_create_response_from_fd (size_t size,
630 int fd) 630 int fd)
631{ 631{
632 return MHD_create_response_from_fd_at_offset64 (size, 632 return MHD_create_response_from_fd_at_offset64 (size,
633 fd, 633 fd,