#endif /* not lint */
#include <sys/types.h>
-/*#include <sys/socket.h>*/
#include <winsock2.h>
-/*#include <netinet/in.h>*/
-/*#include <netdb.h>*/
+/* #include <sys/socket.h> */
+/* #include <netinet/in.h> */
+/* #include <netdb.h> */
#include <stdio.h>
-//#include <various.h>
+/* #include <various.h> */
#include <getopt.h>
#include <io.h>
void usage();
void leave(int iExitCode);
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
extern char *optarg;
extern int optind;
if ( err != 0 )
{
/* Tell the user that we couldn't find a usable */
- /* WinSock DLL. */
- fprintf(stderr, "WSAStartup failed\n");
- return;
+ /* WinSock DLL. */
+ perror("whois: WSAStartup failed");
+ leave(1);
}
hp = gethostbyname(host);
{
WSACleanup();
exit(iExitCode);
-}
\ No newline at end of file
+}