This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Cygwin: net.cc: drop redundant declarations
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 20 Feb 2018 17:15:31 -0000
- Subject: [newlib-cygwin] Cygwin: net.cc: drop redundant declarations
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=dff3bc9a86c5d07f97dd62dd3279124b4b576296
commit dff3bc9a86c5d07f97dd62dd3279124b4b576296
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Tue Feb 20 18:14:57 2018 +0100
Cygwin: net.cc: drop redundant declarations
Replace cygwin_inet_aton call with cygwin_inet_pton
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/net.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index dc81fb7..0d85332 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -59,11 +59,8 @@ extern "C"
{
int h_errno;
- int __stdcall rcmd (char **ahost, unsigned short inport, char *locuser,
- char *remuser, char *cmd, SOCKET * fd2p);
int sscanf (const char *, const char *, ...);
int cygwin_inet_pton(int, const char *, void *);
- int cygwin_inet_aton(const char *, struct in_addr *);
const char *cygwin_inet_ntop (int, const void *, char *, socklen_t);
int dn_length1(const unsigned char *, const unsigned char *,
const unsigned char *);
@@ -1792,7 +1789,7 @@ get_ipv4fromreg (struct ifall *ifp, const char *name, DWORD idx)
{ \
char t[64]; \
sys_wcstombs (t, 64, (u)); \
- cygwin_inet_aton (t, (a)); \
+ cygwin_inet_pton (AF_INET, t, (a)); \
}
/* If DHCP is used, we have only one address. */
if (dhcp)