summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2005-01-03 18:29:22 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2005-01-03 18:29:22 +0000
commitefc8c1b20508080fe521c35119e183ecac6f4448 (patch)
tree89bffa2bafa4e822f4bb11b24e1aec3d0121a3b9
parent081e68ff5cfcb639f44107200103b05bcdafa000 (diff)
downloadlibapr-efc8c1b20508080fe521c35119e183ecac6f4448.tar.gz
Fix up some type mismatches
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124021 13f79535-47bb-0310-9956-ffa450edef68
-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;
}