]> sourceware.org Git - newlib-cygwin.git/commitdiff
Use DnsFree instead of deprecated DnsRecordListFree
authorPeter Foley <pefoley2@pefoley.com>
Mon, 21 Mar 2016 20:41:25 +0000 (16:41 -0400)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 23 Mar 2016 10:41:26 +0000 (11:41 +0100)
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>
winsup/cygwin/autoload.cc
winsup/cygwin/libc/minires-os-if.c

index 422e2c9845bbfb687b6edd196b781affbf216069..9e6184fb4b1c50777533b3281ae26be94e0d6279 100644 (file)
@@ -583,7 +583,7 @@ LoadDLLfunc (AuthzInitializeContextFromToken, 32, authz)
 LoadDLLfunc (AuthzInitializeResourceManager, 24, authz)
 
 LoadDLLfunc (DnsQuery_A, 24, dnsapi)
-LoadDLLfunc (DnsRecordListFree, 8, dnsapi)
+LoadDLLfunc (DnsFree, 8, dnsapi)
 
 LoadDLLfunc (GetAdaptersAddresses, 20, iphlpapi)
 LoadDLLfunc (GetIfEntry, 4, iphlpapi)
index 8970e1a4cd359a4bf7f47464fee94e45969d5146..5142e30325d60e22386425348fe26ea98ddccb6c 100644 (file)
@@ -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:
This page took 0.030649 seconds and 5 git commands to generate.