aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r--src/daemon/connection.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index b049d1a5..c5dd86c7 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -366,7 +366,7 @@ try_ready_chunked_body (struct MHD_Connection *connection)
366 int ret; 366 int ret;
367 char *buf; 367 char *buf;
368 struct MHD_Response *response; 368 struct MHD_Response *response;
369 unsigned int size; 369 size_t size;
370 char cbuf[10]; /* 10: max strlen of "%x\r\n" */ 370 char cbuf[10]; /* 10: max strlen of "%x\r\n" */
371 int cblen; 371 int cblen;
372 372
@@ -466,7 +466,8 @@ add_extra_headers (struct MHD_Connection *connection)
466 MHD_HTTP_HEADER_CONTENT_LENGTH)) 466 MHD_HTTP_HEADER_CONTENT_LENGTH))
467 { 467 {
468 SPRINTF (buf, 468 SPRINTF (buf,
469 "%llu", (unsigned long long) connection->response->total_size); 469 "%llu",
470 connection->response->total_size);
470 MHD_add_response_header (connection->response, 471 MHD_add_response_header (connection->response,
471 MHD_HTTP_HEADER_CONTENT_LENGTH, buf); 472 MHD_HTTP_HEADER_CONTENT_LENGTH, buf);
472 } 473 }
@@ -1087,11 +1088,11 @@ parse_initial_message_line (struct MHD_Connection *connection, char *line)
1087static void 1088static void
1088call_connection_handler (struct MHD_Connection *connection) 1089call_connection_handler (struct MHD_Connection *connection)
1089{ 1090{
1090 unsigned int processed; 1091 size_t processed;
1091 unsigned int available; 1092 size_t available;
1092 unsigned int used; 1093 size_t used;
1094 size_t i;
1093 int instant_retry; 1095 int instant_retry;
1094 unsigned int i;
1095 int malformed; 1096 int malformed;
1096 char *buffer_head; 1097 char *buffer_head;
1097 1098