From: Gisle Vanem Date: Tue, 6 Feb 2007 19:12:38 +0000 (+0000) Subject: Added debug option ('-d') for Watt-32 programs. X-Git-Tag: curl-7_16_2~351 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=078fc4186bfc8e403dc741cb68bcf5c3035c054d;p=curl Added debug option ('-d') for Watt-32 programs. --- 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;