This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Fix return type of get_routedst
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 24 Mar 2016 15:25:31 -0000
- Subject: [newlib-cygwin] Fix return type of get_routedst
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=34adefae7fc7fa803ceb2e62eec301f92eaebf18
commit 34adefae7fc7fa803ceb2e62eec301f92eaebf18
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Mar 24 16:23:50 2016 +0100
Fix return type of get_routedst
* net.cc (get_routedst): Correctly return in_addr_t.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/net.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 3175d0c..8ef621c 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -1913,7 +1913,7 @@ get_adapters_addresses (PIP_ADAPTER_ADDRESSES *pa_ret, ULONG family)
return ret == ERROR_SUCCESS || (!pa_ret && ret == ERROR_BUFFER_OVERFLOW);
}
-static u_long
+static in_addr_t
get_routedst (DWORD if_index)
{
PMIB_IPFORWARDTABLE pift;