ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/ether.cpp
(Generate patch)

Comparing BasiliskII/src/ether.cpp (file contents):
Revision 1.9 by cebix, 2002-01-15T14:58:32Z vs.
Revision 1.11 by cebix, 2002-02-07T16:10:55Z

# Line 35 | Line 35
35   #include <sys/socket.h>
36   #include <sys/ioctl.h>
37   #include <netdb.h>
38 + #include <unistd.h>
39   #include <errno.h>
40   #endif
41  
# Line 114 | Line 115 | void EtherInit(void)
115                  }
116  
117                  // Retrieve local IP address (or at least one of them)
118 <                socklen_t sa_len = sizeof(sa);
119 <                getsockname(udp_socket, (struct sockaddr *)&sa, &sa_len);
118 >                socklen_t sa_length = sizeof(sa);
119 >                getsockname(udp_socket, (struct sockaddr *)&sa, &sa_length);
120                  uint32 udp_ip = sa.sin_addr.s_addr;
121                  if (udp_ip == INADDR_ANY || udp_ip == INADDR_LOOPBACK) {
122                          char name[256];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines