diff options
-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 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, | |||
330 | 330 | ||
331 | pre_cork_setsockopt (connection, want_cork); | 331 | pre_cork_setsockopt (connection, want_cork); |
332 | 332 | ||
333 | vector[0].iov_base = header; | 333 | vector[0].iov_base = (void *) header; |
334 | vector[0].iov_len = strlen (header); | 334 | vector[0].iov_len = strlen (header); |
335 | vector[1].iov_base = buffer; | 335 | vector[1].iov_base = (void *) buffer; |
336 | vector[1].iov_len = strlen (buffer); | 336 | vector[1].iov_len = strlen (buffer); |
337 | 337 | ||
338 | #if HAVE_SENDMSG | 338 | #if HAVE_SENDMSG |
339 | struct msghdr msg; | 339 | struct msghdr msg; |
340 | msg.msg_iov = vector; | 340 | msg.msg_iov = vector; |
341 | memset(&msg, 0, sizeof(msg)); | 341 | memset(&msg, 0, sizeof(msg)); |
342 | ret = sendmsg (s, vector, MAYBE_MSG_NOSIGNAL); | 342 | ret = sendmsg (s, &msg, MAYBE_MSG_NOSIGNAL); |
343 | #elif HAVE_WRITEV | 343 | #elif HAVE_WRITEV |
344 | iovcnt = sizeof (vector) / sizeof (struct iovec); | 344 | iovcnt = sizeof (vector) / sizeof (struct iovec); |
345 | ret = writev (s, vector, iovcnt); | 345 | ret = writev (s, vector, iovcnt); |