Replaced use of perror() with herror() for obtaining error message of gethostbyname()
[dockapps/wmnotify.git] / 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;
   }