entered into RCS
authorroland <roland>
Sun, 6 Feb 1994 22:35:33 +0000 (22:35 +0000)
committerroland <roland>
Sun, 6 Feb 1994 22:35:33 +0000 (22:35 +0000)
sunrpc/pmap_rmt.c

index 8d1e713..46d5f0e 100644 (file)
@@ -189,7 +189,9 @@ getbroadcastnets(addrs, sock, buf)
 #ifdef SIOCGIFBRDADDR   /* 4.3BSD */
                        if (ioctl(sock, SIOCGIFBRDADDR, (char *)&ifreq) < 0) {
                                addrs[i++] = inet_makeaddr(inet_netof
-                           (sin->sin_addr.s_addr), INADDR_ANY);
+                           /* Changed to pass struct instead of s_addr member
+                              by roland@gnu.  */
+                           (sin->sin_addr), INADDR_ANY);
                        } else {
                                addrs[i++] = ((struct sockaddr_in*)
                                  &ifreq.ifr_addr)->sin_addr;