1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Renamed sa_len to addrlen because IRIX defines sa_len as macro.

This commit is contained in:
hniksic 2003-11-27 02:59:41 -08:00
parent 084dd20514
commit f496a0ea07
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-11-27 Hrvoje Niksic <hniksic@xemacs.org>
* connect.c (bind_local): Rename sa_len to addrlen because IRIX
headers define sa_len as a macro.
2003-11-26 Hrvoje Niksic <hniksic@xemacs.org>
* html-parse.c (convert_and_copy): Remove embedded newlines when

View File

@ -447,8 +447,8 @@ bind_local (const ip_address *bind_address, int *port)
/* If *PORT is 0, find out which port we've bound to. */
if (*port == 0)
{
socklen_t sa_len = sockaddr_size (sa);
if (getsockname (sock, sa, &sa_len) < 0)
socklen_t addrlen = sockaddr_size (sa);
if (getsockname (sock, sa, &addrlen) < 0)
{
/* If we can't find out the socket's local address ("name"),
something is seriously wrong with the socket, and it's