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 | 078fc4186bfc8e403dc741cb68bcf5c3035c054d (patch) | |
tree | 1a99e0c9004ae98244803c42b4664ee86ebebabd /ares | |
parent | fabbb3fc34aa70dc53b384fe5c51de8440215f90 (diff) |
Added debug option ('-d') for Watt-32 programs.
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ahost.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ares/ahost.c b/ares/ahost.c index 8f6b671af..35bd7b0f4 100644 --- a/ares/ahost.c +++ b/ares/ahost.c @@ -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; |