aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index fd19e112..dae28a41 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -265,7 +265,7 @@ MHD_connection_close (struct MHD_Connection *connection,
265 265
266 daemon = connection->daemon; 266 daemon = connection->daemon;
267 if (0 == (connection->daemon->options & MHD_USE_EPOLL_TURBO)) 267 if (0 == (connection->daemon->options & MHD_USE_EPOLL_TURBO))
268 SHUTDOWN (connection->socket_fd, 268 shutdown (connection->socket_fd,
269 (MHD_YES == connection->read_closed) ? SHUT_WR : SHUT_RDWR); 269 (MHD_YES == connection->read_closed) ? SHUT_WR : SHUT_RDWR);
270 connection->state = MHD_CONNECTION_CLOSED; 270 connection->state = MHD_CONNECTION_CLOSED;
271 connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP; 271 connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;
@@ -625,7 +625,7 @@ add_extra_headers (struct MHD_Connection *connection)
625 Note that the change from 'SHOULD NOT' to 'MUST NOT' is 625 Note that the change from 'SHOULD NOT' to 'MUST NOT' is
626 a recent development of the HTTP 1.1 specification. 626 a recent development of the HTTP 1.1 specification.
627 */ 627 */
628 SPRINTF (buf, 628 sprintf (buf,
629 MHD_UNSIGNED_LONG_LONG_PRINTF, 629 MHD_UNSIGNED_LONG_LONG_PRINTF,
630 (MHD_UNSIGNED_LONG_LONG) connection->response->total_size); 630 (MHD_UNSIGNED_LONG_LONG) connection->response->total_size);
631 MHD_add_response_header (connection->response, 631 MHD_add_response_header (connection->response,
@@ -769,7 +769,7 @@ build_header_response (struct MHD_Connection *connection)
769 add_extra_headers (connection); 769 add_extra_headers (connection);
770 rc = connection->responseCode & (~MHD_ICY_FLAG); 770 rc = connection->responseCode & (~MHD_ICY_FLAG);
771 reason_phrase = MHD_get_reason_phrase_for (rc); 771 reason_phrase = MHD_get_reason_phrase_for (rc);
772 SPRINTF (code, 772 sprintf (code,
773 "%s %u %s\r\n", 773 "%s %u %s\r\n",
774 (0 != (connection->responseCode & MHD_ICY_FLAG)) 774 (0 != (connection->responseCode & MHD_ICY_FLAG))
775 ? "ICY" 775 ? "ICY"
@@ -835,7 +835,7 @@ build_header_response (struct MHD_Connection *connection)
835 } 835 }
836 for (pos = connection->response->first_header; NULL != pos; pos = pos->next) 836 for (pos = connection->response->first_header; NULL != pos; pos = pos->next)
837 if (pos->kind == kind) 837 if (pos->kind == kind)
838 off += SPRINTF (&data[off], 838 off += sprintf (&data[off],
839 "%s: %s\r\n", 839 "%s: %s\r\n",
840 pos->header, 840 pos->header,
841 pos->value); 841 pos->value);
@@ -1675,7 +1675,7 @@ do_write (struct MHD_Connection *connection)
1675 return MHD_YES; 1675 return MHD_YES;
1676 } 1676 }
1677#if DEBUG_SEND_DATA 1677#if DEBUG_SEND_DATA
1678 FPRINTF (stderr, 1678 fprintf (stderr,
1679 "Sent response: `%.*s'\n", 1679 "Sent response: `%.*s'\n",
1680 ret, 1680 ret,
1681 &connection->write_buffer[connection->write_buffer_send_offset]); 1681 &connection->write_buffer[connection->write_buffer_send_offset]);
@@ -2056,7 +2056,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
2056 return MHD_YES; 2056 return MHD_YES;
2057 } 2057 }
2058#if DEBUG_SEND_DATA 2058#if DEBUG_SEND_DATA
2059 FPRINTF (stderr, 2059 fprintf (stderr,
2060 "Sent 100 continue response: `%.*s'\n", 2060 "Sent 100 continue response: `%.*s'\n",
2061 (int) ret, 2061 (int) ret,
2062 &HTTP_100_CONTINUE[connection->continue_message_write_offset]); 2062 &HTTP_100_CONTINUE[connection->continue_message_write_offset]);
@@ -2094,7 +2094,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
2094 const int err = MHD_socket_errno_; 2094 const int err = MHD_socket_errno_;
2095#if DEBUG_SEND_DATA 2095#if DEBUG_SEND_DATA
2096 if (ret > 0) 2096 if (ret > 0)
2097 FPRINTF (stderr, 2097 fprintf (stderr,
2098 "Sent DATA response: `%.*s'\n", 2098 "Sent DATA response: `%.*s'\n",
2099 (int) ret, 2099 (int) ret,
2100 &response->data[connection->response_write_position - 2100 &response->data[connection->response_write_position -