diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-10-20 12:57:25 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-10-20 12:57:25 +0000 |
commit | d698e833cdf5dc0bddf804ca47d0bb8beaa73b29 (patch) | |
tree | 76f3a416f61e3853e09f41fc279561b0557ec98d /winsup/cygwin/net.cc | |
parent | 09a35955fb44923d9fd284cd2704ab1590283751 (diff) | |
download | newlib-d698e833cdf5dc0bddf804ca47d0bb8beaa73b29.zip newlib-d698e833cdf5dc0bddf804ca47d0bb8beaa73b29.tar.gz newlib-d698e833cdf5dc0bddf804ca47d0bb8beaa73b29.tar.bz2 |
* net.cc (cygwin_getnameinfo): Fix typo in comment.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 5b8b783..a1ab415 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -3456,7 +3456,7 @@ cygwin_getnameinfo (const struct sockaddr *sa, socklen_t salen, if (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 is 0. If so, set the NI_NUMERICSERV flag to avoid this problem. */ switch (sa->sa_family) |