diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-16 15:04:44 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-16 15:04:44 +0000 |
commit | 059b57677c14ac832249193042f0cf61e9c15ff2 (patch) | |
tree | 677f58ef1e078e03ff26d6fc977b3296fcb2163b /ares/adig.c | |
parent | 9896421586996265e8320fbe253da004215c8a12 (diff) |
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
Diffstat (limited to 'ares/adig.c')
-rw-r--r-- | ares/adig.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |