From: Hugo Villeneuve Date: Mon, 3 Oct 2005 19:06:08 +0000 (+0000) Subject: Replaced use of perror() with herror() for obtaining error message of gethostbyname() X-Git-Tag: v0.3.2~9 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=f86c044343a6ebb0bef30e68a0daa82d91f9b68a;p=dockapps%2Fwmnotify.git Replaced use of perror() with herror() for obtaining error message of gethostbyname() --- diff --git a/src/network.c b/src/network.c index c85ea4f..e5eb47b 100644 --- a/src/network.c +++ b/src/network.c @@ -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; }