summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-29 21:42:26 +0000
committerng0 <ng0@n0.is>2019-07-29 21:42:44 +0000
commit57054d044880168615e380fc9ab0f37563020019 (patch)
tree70fc062e2e33adb23eb04bc5d9c6ac871b0efcc1
parent45bcf0206b5a907633e1638a5b5e2a10ec42aec3 (diff)
.
-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 f1d2cb19..6637d2d2 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -330,16 +330,16 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
pre_cork_setsockopt (connection, want_cork);
- vector[0].iov_base = header;
+ vector[0].iov_base = (void *) header;
vector[0].iov_len = strlen (header);
- vector[1].iov_base = buffer;
+ vector[1].iov_base = (void *) buffer;
vector[1].iov_len = strlen (buffer);
#if HAVE_SENDMSG
struct msghdr msg;
msg.msg_iov = vector;
memset(&msg, 0, sizeof(msg));
- ret = sendmsg (s, vector, MAYBE_MSG_NOSIGNAL);
+ ret = sendmsg (s, &msg, MAYBE_MSG_NOSIGNAL);
#elif HAVE_WRITEV
iovcnt = sizeof (vector) / sizeof (struct iovec);
ret = writev (s, vector, iovcnt);