From 6413a26a8845f884951d31983f23c821670840a8 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Tue, 6 Feb 2007 19:12:38 +0000 Subject: Added debug option ('-d') for Watt-32 programs. --- ahost.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ahost.c') 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; -- cgit v1.2.3