Added debug option ('-d') for Watt-32 programs.

This commit is contained in:
Gisle Vanem 2007-02-06 19:12:38 +00:00
parent fabbb3fc34
commit 078fc4186b

View File

@ -78,10 +78,16 @@ int main(int argc, char **argv)
WSAStartup(wVersionRequested, &wsaData); WSAStartup(wVersionRequested, &wsaData);
#endif #endif
while ((c = getopt(argc,argv,"t:h")) != -1) while ((c = getopt(argc,argv,"dt:h")) != -1)
{ {
switch (c) switch (c)
{ {
case 'd':
#ifdef WATT32
dbug_init();
#endif
break;
case 't': case 't':
if (!strcasecmp(optarg,"a")) if (!strcasecmp(optarg,"a"))
addr_family = AF_INET; addr_family = AF_INET;