libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 57054d044880168615e380fc9ab0f37563020019
parent 45bcf0206b5a907633e1638a5b5e2a10ec42aec3
Author: ng0 <ng0@n0.is>
Date:   Mon, 29 Jul 2019 21:42:26 +0000

.

Diffstat:
Msrc/microhttpd/mhd_send.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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);