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 | 69fa44735497e10ca7c49075455da1370b7d7484 (patch) | |
tree | 35a7749e2b33d5bdcbf755853873e19012781f75 /adig.c | |
parent | 10a035e128165a09d7d7a0958ac5c706bf41a6ab (diff) | |
download | c-ares-69fa44735497e10ca7c49075455da1370b7d7484.tar.gz c-ares-69fa44735497e10ca7c49075455da1370b7d7484.tar.bz2 c-ares-69fa44735497e10ca7c49075455da1370b7d7484.zip |
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
Diffstat (limited to 'adig.c')
-rw-r--r-- | adig.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |