Replaced use of perror() with herror() for obtaining error message of gethostbyname()
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 3 Oct 2005 19:06:08 +0000 (19:06 +0000)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 25 May 2013 22:55:29 +0000 (18:55 -0400)
src/network.c

index c85ea4f..e5eb47b 100644 (file)
@@ -45,7 +45,7 @@ SocketOpen( char *server_name, int port )
   
   hostinfo = gethostbyname(server_name);
   if( hostinfo == NULL ) {
-    perror( PACKAGE );
+    herror( PACKAGE );
     ErrorLocation( __FILE__, __LINE__ );
     goto error;
   }