diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:50:18 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:50:18 +0000 |
commit | 3e748f4b50224e43b916dda5de438c785bdcd49d (patch) | |
tree | 53bbfe3dae88be1fd482d3fc392cd1465214f4f3 /ahost.c | |
parent | 47bd7d7548103c44b466fceb1dbda425ce8774bc (diff) | |
download | c-ares-3e748f4b50224e43b916dda5de438c785bdcd49d.tar.gz c-ares-3e748f4b50224e43b916dda5de438c785bdcd49d.tar.bz2 c-ares-3e748f4b50224e43b916dda5de438c785bdcd49d.zip |
removed tabs and trailing whitespace from source
Diffstat (limited to 'ahost.c')
-rw-r--r-- | ahost.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -33,7 +33,7 @@ #include "ares_dns.h" #ifndef INADDR_NONE -#define INADDR_NONE 0xffffffff +#define INADDR_NONE 0xffffffff #endif static void callback(void *arg, int status, struct hostent *host); @@ -51,7 +51,7 @@ int main(int argc, char **argv) WORD wVersionRequested = MAKEWORD(1,1); WSADATA wsaData; WSAStartup(wVersionRequested, &wsaData); -#endif +#endif if (argc <= 1) usage(); @@ -68,12 +68,12 @@ int main(int argc, char **argv) { addr.s_addr = inet_addr(*argv); if (addr.s_addr == INADDR_NONE) - ares_gethostbyname(channel, *argv, AF_INET, callback, *argv); + ares_gethostbyname(channel, *argv, AF_INET, callback, *argv); else - { - ares_gethostbyaddr(channel, &addr, sizeof(addr), AF_INET, callback, - *argv); - } + { + ares_gethostbyaddr(channel, &addr, sizeof(addr), AF_INET, callback, + *argv); + } } /* Wait for all queries to complete. */ @@ -83,7 +83,7 @@ int main(int argc, char **argv) FD_ZERO(&write_fds); nfds = ares_fds(channel, &read_fds, &write_fds); if (nfds == 0) - break; + break; tvp = ares_timeout(channel, NULL, &tv); select(nfds, &read_fds, &write_fds, NULL, tvp); ares_process(channel, &read_fds, &write_fds); |