mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* net.cc (cygwin_getnameinfo): Fix typo in comment.
This commit is contained in:
parent
09a35955fb
commit
d698e833cd
@ -1,3 +1,7 @@
|
|||||||
|
2006-10-20 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* net.cc (cygwin_getnameinfo): Fix typo in comment.
|
||||||
|
|
||||||
2006-10-19 Corinna Vinschen <corinna@vinschen.de>
|
2006-10-19 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.h (fhandler_base::set_name): Make virtual.
|
* fhandler.h (fhandler_base::set_name): Make virtual.
|
||||||
|
@ -3456,7 +3456,7 @@ cygwin_getnameinfo (const struct sockaddr *sa, socklen_t salen,
|
|||||||
if (getnameinfo)
|
if (getnameinfo)
|
||||||
{
|
{
|
||||||
/* When the incoming port number is set to 0, Winsock's getnameinfo
|
/* When the incoming port number is set to 0, Winsock's getnameinfo
|
||||||
returns with error WSAENO_DATA instead of simply ignoring the port.
|
returns with error WSANO_DATA instead of simply ignoring the port.
|
||||||
To avoid this strange behaviour, we check manually, if the port number
|
To avoid this strange behaviour, we check manually, if the port number
|
||||||
is 0. If so, set the NI_NUMERICSERV flag to avoid this problem. */
|
is 0. If so, set the NI_NUMERICSERV flag to avoid this problem. */
|
||||||
switch (sa->sa_family)
|
switch (sa->sa_family)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user