aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vic/files/patch-net-ipv6.cpp
blob: 26397cdde8ff1fa71ef456188ccc497c61988df5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- net/net-ipv6.cpp.org    Mon Feb  4 17:51:46 2002
+++ net/net-ipv6.cpp    Mon Feb  4 17:52:08 2002
@@ -277,7 +277,7 @@
   p->sin6_family = AF_INET6;
   int len = sizeof(*p), result = 0;
 
-  if ((result = getsockname(ssock_, (struct sockaddr *)p, &len)) < 0) {
+  if ((result = getsockname(ssock_, (struct sockaddr *)p, (socklen_t *)&len)) < 0) {
     perror("getsockname");
     p->sin6_addr = in6addr_any;
     p->sin6_port = 0;
@@ -364,7 +364,7 @@
         * with bated breath.
         */
 #if defined(__FreeBSD__)
-                struct oipv6_mreq mr;
+                struct ipv6_mreq mr;
 #else
                 struct ipv6_mreq mr;
 #endif
@@ -522,7 +522,7 @@
    sockaddr_in6 sfrom;
    int fromlen = sizeof(sfrom);
    int cc = ::recvfrom(fd, (char*)buf, len, 0,
-               (sockaddr*)&sfrom, &fromlen);
+               (sockaddr*)&sfrom, (socklen_t *)&fromlen);
    if (cc < 0) {
        if (errno != EWOULDBLOCK)
            perror("recvfrom");