diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-14 16:09:10 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-14 16:09:10 +0300 |
commit | 83fe7b778a7fddf7454acf1f3b9afbd856ff9009 (patch) | |
tree | e12a44c3472ff4bcef3655bbcd5834d3baa7f36f /src/microhttpd/mhd_send.c | |
parent | e4d6c07b141b0ddb989d6826e4f8344c50e1b5fa (diff) | |
download | libmicrohttpd-83fe7b778a7fddf7454acf1f3b9afbd856ff9009.tar.gz libmicrohttpd-83fe7b778a7fddf7454acf1f3b9afbd856ff9009.zip |
Fixed additional compiler warnings on W32
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r-- | src/microhttpd/mhd_send.c | 6 |
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 | } |