diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-02-06 19:12:38 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-02-06 19:12:38 +0000 |
commit | 6413a26a8845f884951d31983f23c821670840a8 (patch) | |
tree | ad6db5ca66ae38088404216abe4b6e819eb69e67 | |
parent | 657c69ce9d12ec0d4e579431fdfc20d3a22298ed (diff) | |
download | c-ares-6413a26a8845f884951d31983f23c821670840a8.tar.gz c-ares-6413a26a8845f884951d31983f23c821670840a8.tar.bz2 c-ares-6413a26a8845f884951d31983f23c821670840a8.zip |
Added debug option ('-d') for Watt-32 programs.
-rw-r--r-- | ahost.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -78,10 +78,16 @@ int main(int argc, char **argv) WSAStartup(wVersionRequested, &wsaData); #endif - while ((c = getopt(argc,argv,"t:h")) != -1) + while ((c = getopt(argc,argv,"dt:h")) != -1) { switch (c) { + case 'd': +#ifdef WATT32 + dbug_init(); +#endif + break; + case 't': if (!strcasecmp(optarg,"a")) addr_family = AF_INET; |