summaryrefslogtreecommitdiff
path: root/openbsd-compat/getrrsetbyname.c
diff options
context:
space:
mode:
authortim <tim>2004-02-24 04:51:06 +0000
committertim <tim>2004-02-24 04:51:06 +0000
commit2f02f0ea58847ad479bbfaf953a2bf78c290ec93 (patch)
tree80ee9d7f0a41b40b3d6ca9d199a42863ab0b1854 /openbsd-compat/getrrsetbyname.c
parentab23e0537b98910872da71a700e5a91f3501e8e9 (diff)
downloadopenssh-2f02f0ea58847ad479bbfaf953a2bf78c290ec93.tar.gz
[openbsd-compat/getrrsetbyname.c] Make gcc 2.7.2.3 happy. ok djm@
Diffstat (limited to 'openbsd-compat/getrrsetbyname.c')
-rw-r--r--openbsd-compat/getrrsetbyname.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
index bb5451cd..66d18142 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -51,8 +51,6 @@
#include "getrrsetbyname.h"
-/* #include "thread_private.h" */
-
#define ANSWER_BUFFER_SIZE 1024*64
struct dns_query {
@@ -161,7 +159,6 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
unsigned int rdtype, unsigned int flags,
struct rrsetinfo **res)
{
- struct __res_state *_resp = &_res;
int result;
struct rrsetinfo *rrset = NULL;
struct dns_response *response;
@@ -190,19 +187,19 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
}
/* initialize resolver */
- if ((_resp->options & RES_INIT) == 0 && res_init() == -1) {
+ if ((_res.options & RES_INIT) == 0 && res_init() == -1) {
result = ERRSET_FAIL;
goto fail;
}
#ifdef DEBUG
- _resp->options |= RES_DEBUG;
+ _res.options |= RES_DEBUG;
#endif /* DEBUG */
#ifdef RES_USE_DNSSEC
/* turn on DNSSEC if EDNS0 is configured */
- if (_resp->options & RES_USE_EDNS0)
- _resp->options |= RES_USE_DNSSEC;
+ if (_res.options & RES_USE_EDNS0)
+ _res.options |= RES_USE_DNSSEC;
#endif /* RES_USE_DNSEC */
/* make query */