aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r--src/microhttpd/mhd_send.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index c607a4c8..be471619 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -1081,9 +1081,9 @@ MHD_send_hdr_and_body_ (struct MHD_Connection *connection,
1081 complete_response = false; 1081 complete_response = false;
1082 push_body = complete_response; 1082 push_body = complete_response;
1083 } 1083 }
1084 vector[0].buf = (char *) header; 1084 vector[0].buf = (char *) _MHD_DROP_CONST (header);
1085 vector[0].len = (unsigned long) header_size; 1085 vector[0].len = (unsigned long) header_size;
1086 vector[1].buf = (char *) body; 1086 vector[1].buf = (char *) _MHD_DROP_CONST (body);
1087 vector[1].len = (unsigned long) body_size; 1087 vector[1].len = (unsigned long) body_size;
1088 1088
1089 ret = WSASend (s, vector, 2, &vec_sent, 0, NULL, NULL); 1089 ret = WSASend (s, vector, 2, &vec_sent, 0, NULL, NULL);
@@ -1600,7 +1600,7 @@ send_iov_emu (struct MHD_Connection *connection,
1600 * Adjust buffer of the last element. */ 1600 * Adjust buffer of the last element. */
1601 r_iov->iov[r_iov->sent].iov_base = 1601 r_iov->iov[r_iov->sent].iov_base =
1602 (void *) ((uint8_t *) r_iov->iov[r_iov->sent].iov_base + sent); 1602 (void *) ((uint8_t *) r_iov->iov[r_iov->sent].iov_base + sent);
1603 r_iov->iov[r_iov->sent].iov_len -= sent; 1603 r_iov->iov[r_iov->sent].iov_len -= (MHD_iov_size_) sent;
1604 1604
1605 return (ssize_t) total_sent; 1605 return (ssize_t) total_sent;
1606 } 1606 }