aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/libc
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2016-03-21 16:41:25 -0400
committerCorinna Vinschen <corinna@vinschen.de>2016-03-23 11:41:26 +0100
commitfa6a5a3a74cb822900111319c39a6a4793e4b588 (patch)
treefc65108538b2b12272a04502c10e90c1256acc2b /winsup/cygwin/libc
parent5ec2d62bea91c6574cb3677f09220c0170bf14cd (diff)
downloadnewlib-fa6a5a3a74cb822900111319c39a6a4793e4b588.zip
newlib-fa6a5a3a74cb822900111319c39a6a4793e4b588.tar.gz
newlib-fa6a5a3a74cb822900111319c39a6a4793e4b588.tar.bz2
Use DnsFree instead of deprecated DnsRecordListFree
The latest version of the mingw headers have been updated to make DnsRecordListFree an alias of DnsFree when targeting Windows XP or later. Use DnsFree directly, avoiding the wrapper function. /home/peter/cross/src/cygwin/winsup/cygwin/libc/minires-os-if.c:289: undefined reference to `DnsFree' winsup/cygwin/ChangeLog autoload.cc: Load DnsFree rather then DnsRecordListFree libc/minires-os-if.cc (cygwin_query): Use DnsFree rather then DnsRecordListFree Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/minires-os-if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/libc/minires-os-if.c b/winsup/cygwin/libc/minires-os-if.c
index 8970e1a..5142e30 100644
--- a/winsup/cygwin/libc/minires-os-if.c
+++ b/winsup/cygwin/libc/minires-os-if.c
@@ -286,7 +286,7 @@ static int cygwin_query(res_state statp, const char * DomName, int Class, int Ty
rr = rr->pNext;
}
- DnsRecordListFree(pQueryResultsSet, DnsFreeRecordList);
+ DnsFree(pQueryResultsSet, DnsFreeRecordList);
len = ptr - AnsPtr;
done: