diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-05-01 14:56:46 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-05-01 14:56:46 +0000 |
commit | 1112b2c38f39f33daefd03bb1eebe9e1f84eabaf (patch) | |
tree | 1ac47a18ba1a55c374985d47654adb6617df0cb6 /winsup/cygwin/libc/minires-os-if.c | |
parent | 5c2be92ec424daa3094adc784adfa1616de2d229 (diff) | |
download | cygnal-1112b2c38f39f33daefd03bb1eebe9e1f84eabaf.tar.gz cygnal-1112b2c38f39f33daefd03bb1eebe9e1f84eabaf.tar.bz2 cygnal-1112b2c38f39f33daefd03bb1eebe9e1f84eabaf.zip |
* libc/minires-os-if.c (get_dns_info): Remove unnecessary test for
existence of DnsQuery_A.
Diffstat (limited to 'winsup/cygwin/libc/minires-os-if.c')
-rw-r--r-- | winsup/cygwin/libc/minires-os-if.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/libc/minires-os-if.c b/winsup/cygwin/libc/minires-os-if.c index eb788f2c6..c2f1a46be 100644 --- a/winsup/cygwin/libc/minires-os-if.c +++ b/winsup/cygwin/libc/minires-os-if.c @@ -419,8 +419,7 @@ void get_dns_info(res_state statp) FIXED_INFO * pFixedInfo; int numAddresses = 0; - if (statp->use_os - && ((dwRetVal = DnsQuery_A(NULL, 0, 0, NULL, NULL, NULL)) != ERROR_PROC_NOT_FOUND)) + if (statp->use_os) { DPRINTF(debug, "using dnsapi.dll %d\n", dwRetVal); statp->os_query = (typeof(statp->os_query)) cygwin_query; |