From efc8c1b20508080fe521c35119e183ecac6f4448 Mon Sep 17 00:00:00 2001 From: bnicholes Date: Mon, 3 Jan 2005 18:29:22 +0000 Subject: Fix up some type mismatches git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124021 13f79535-47bb-0310-9956-ffa450edef68 --- network_io/unix/multicast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network_io/unix/multicast.c b/network_io/unix/multicast.c index 08cd522cd..fc4e6b3ea 100644 --- a/network_io/unix/multicast.c +++ b/network_io/unix/multicast.c @@ -149,7 +149,7 @@ static apr_status_t do_mcast(int type, apr_socket_t *sock, fill_mip_v4(&mip4, mcast, iface); if (setsockopt(sock->socketdes, IPPROTO_IP, type, - &mip4, sizeof(mip4)) == -1) { + (const void *)&mip4, sizeof(mip4)) == -1) { rv = errno; } } @@ -192,7 +192,7 @@ static apr_status_t do_mcast_opt(int type, apr_socket_t *sock, if (sock_is_ipv4(sock)) { if (setsockopt(sock->socketdes, IPPROTO_IP, type, - &value, sizeof(value)) == -1) { + (const void *)&value, sizeof(value)) == -1) { rv = errno; } } @@ -278,7 +278,7 @@ APR_DECLARE(apr_status_t) apr_mcast_interface(apr_socket_t *sock, if (sock_is_ipv4(sock)) { if (setsockopt(sock->socketdes, IPPROTO_IP, IP_MULTICAST_IF, - &iface->sa.sin.sin_addr, + (const void *)&iface->sa.sin.sin_addr, sizeof(iface->sa.sin.sin_addr)) == -1) { rv = errno; } -- cgit v1.2.1