add debug messages for initialization failures

This commit is contained in:
Yang Tse 2007-02-19 02:03:58 +00:00
parent cbf58d88d0
commit 31e598d2f3
8 changed files with 66 additions and 11 deletions

View file

@ -130,7 +130,7 @@ void win32_init(void)
if (err != 0) {
perror("Winsock init failed");
logmsg("Error initialising winsock -- aborting\n");
logmsg("Error initialising winsock -- aborting");
exit(1);
}
@ -139,7 +139,7 @@ void win32_init(void)
WSACleanup();
perror("Winsock init failed");
logmsg("No suitable winsock.dll found -- aborting\n");
logmsg("No suitable winsock.dll found -- aborting");
exit(1);
}
}