apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584458 - /apr/apr/trunk/network_io/unix/multicast.c
Date Sat, 13 Oct 2007 22:26:59 GMT
Author: wrowe
Date: Sat Oct 13 15:26:45 2007
New Revision: 584458

URL: http://svn.apache.org/viewvc?rev=584458&view=rev
Log:
Clean up spurious noise on platforms where the setsockopt's
sa* is char* rather than void* (as it should be).

Modified:
    apr/apr/trunk/network_io/unix/multicast.c

Modified: apr/apr/trunk/network_io/unix/multicast.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/multicast.c?rev=584458&r1=584457&r2=584458&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/multicast.c (original)
+++ apr/apr/trunk/network_io/unix/multicast.c Sat Oct 13 15:26:45 2007
@@ -181,7 +181,7 @@
             fill_mip_v6(&mip6, mcast, iface);
 
             if (setsockopt(sock->socketdes, IPPROTO_IPV6, type,
-                           &mip6, sizeof(mip6)) == -1) {
+                           (const void *) &mip6, sizeof(mip6)) == -1) {
                 rv = errno;
             }
         }
@@ -209,7 +209,7 @@
         unsigned int loopopt = value;
         type = IPV6_MULTICAST_LOOP;
         if (setsockopt(sock->socketdes, IPPROTO_IPV6, type,
-                       &loopopt, sizeof(loopopt)) == -1) {
+                       (const void *) &loopopt, sizeof(loopopt)) == -1) {
             rv = errno;
         }
     }
@@ -295,7 +295,7 @@
     else if (sock_is_ipv6(sock)) {
         unsigned int idx = find_if_index(iface);
         if (setsockopt(sock->socketdes, IPPROTO_IPV6, IPV6_MULTICAST_IF,
-                       &idx, sizeof(idx)) == -1) {
+                       (const void *) &idx, sizeof(idx)) == -1) {
             rv = errno;
         }
     }



Mime
View raw message