apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject svn commit: r124021 - /apr/apr/trunk/network_io/unix/multicast.c
Date Mon, 03 Jan 2005 18:29:24 GMT
Author: bnicholes
Date: Mon Jan  3 10:29:22 2005
New Revision: 124021

URL: http://svn.apache.org/viewcvs?view=rev&rev=124021
Log:
Fix up some type mismatches
Modified:
   apr/apr/trunk/network_io/unix/multicast.c

Modified: apr/apr/trunk/network_io/unix/multicast.c
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/unix/multicast.c?view=diff&rev=124021&p1=apr/apr/trunk/network_io/unix/multicast.c&r1=124020&p2=apr/apr/trunk/network_io/unix/multicast.c&r2=124021
==============================================================================
--- apr/apr/trunk/network_io/unix/multicast.c	(original)
+++ apr/apr/trunk/network_io/unix/multicast.c	Mon Jan  3 10:29:22 2005
@@ -149,7 +149,7 @@
         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 @@
 
     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 @@
 
     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;
         }

Mime
View raw message