summaryrefslogtreecommitdiff
path: root/ahost.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-06 19:12:38 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-02-06 19:12:38 +0000
commit6413a26a8845f884951d31983f23c821670840a8 (patch)
treead6db5ca66ae38088404216abe4b6e819eb69e67 /ahost.c
parent657c69ce9d12ec0d4e579431fdfc20d3a22298ed (diff)
downloadc-ares-6413a26a8845f884951d31983f23c821670840a8.tar.gz
c-ares-6413a26a8845f884951d31983f23c821670840a8.tar.bz2
c-ares-6413a26a8845f884951d31983f23c821670840a8.zip
Added debug option ('-d') for Watt-32 programs.
Diffstat (limited to 'ahost.c')
-rw-r--r--ahost.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ahost.c b/ahost.c
index 8f6b671..35bd7b0 100644
--- a/ahost.c
+++ b/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;