apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584459 - /apr/apr/branches/1.2.x/network_io/unix/multicast.c
Date Sat, 13 Oct 2007 22:27:45 GMT
Author: wrowe
Date: Sat Oct 13 15:27:43 2007
New Revision: 584459

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

Backports: 584458

Modified:
    apr/apr/branches/1.2.x/network_io/unix/multicast.c

Modified: apr/apr/branches/1.2.x/network_io/unix/multicast.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/network_io/unix/multicast.c?rev=584459&r1=584458&r2=584459&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/network_io/unix/multicast.c (original)
+++ apr/apr/branches/1.2.x/network_io/unix/multicast.c Sat Oct 13 15:27:43 2007
@@ -203,7 +203,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;
             }
         }
@@ -237,7 +237,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;
         }
     }
@@ -323,7 +323,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