summaryrefslogtreecommitdiff
path: root/network_io/unix/multicast.c
diff options
context:
space:
mode:
Diffstat (limited to 'network_io/unix/multicast.c')
-rw-r--r--network_io/unix/multicast.c6
1 files 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;
}