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:
parent
084dd20514
commit
f496a0ea07
@ -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>
|
2003-11-26 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* html-parse.c (convert_and_copy): Remove embedded newlines when
|
* html-parse.c (convert_and_copy): Remove embedded newlines when
|
||||||
|
@ -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 is 0, find out which port we've bound to. */
|
||||||
if (*port == 0)
|
if (*port == 0)
|
||||||
{
|
{
|
||||||
socklen_t sa_len = sockaddr_size (sa);
|
socklen_t addrlen = sockaddr_size (sa);
|
||||||
if (getsockname (sock, sa, &sa_len) < 0)
|
if (getsockname (sock, sa, &addrlen) < 0)
|
||||||
{
|
{
|
||||||
/* If we can't find out the socket's local address ("name"),
|
/* If we can't find out the socket's local address ("name"),
|
||||||
something is seriously wrong with the socket, and it's
|
something is seriously wrong with the socket, and it's
|
||||||
|
Loading…
Reference in New Issue
Block a user