improvements to indexing: allow user control and fix bugs in sorting
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@836 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -191,9 +191,9 @@ Yap_init_socks(char *host, long interface_port)
|
||||
|
||||
#if USE_SOCKET
|
||||
he = gethostbyname(host);
|
||||
if (!he) {
|
||||
if (he == NULL) {
|
||||
#if HAVE_STRERROR
|
||||
Yap_Error(SYSTEM_ERROR, TermNil, "can not get address for host: %s", strerror(errno));
|
||||
Yap_Error(SYSTEM_ERROR, TermNil, "can not get address for host %s: %s", host, strerror(h_errno));
|
||||
#else
|
||||
Yap_Error(SYSTEM_ERROR, TermNil, "can not get address for host");
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user