From 059b57677c14ac832249193042f0cf61e9c15ff2 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 16 Feb 2007 15:04:44 +0000 Subject: use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling --- ares/adig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ares/adig.c') diff --git a/ares/adig.c b/ares/adig.c index 6a23c5138..32e07217d 100644 --- a/ares/adig.c +++ b/ares/adig.c @@ -289,7 +289,7 @@ int main(int argc, char **argv) break; tvp = ares_timeout(channel, NULL, &tv); count = select(nfds, &read_fds, &write_fds, NULL, tvp); - if (count < 0 && errno != EINVAL) + if (count < 0 && SOCKERRNO != EINVAL) { perror("select"); return 1; -- cgit v1.2.3