From: oes Date: Sun, 1 Jul 2001 17:04:11 +0000 (+0000) Subject: Bugfix: accept_connection no longer uses the obsolete hstrerror() function X-Git-Tag: v_2_9_9~293 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=84b226d2bccfc382b0d965293cd7e9330100417d;ds=sidebyside Bugfix: accept_connection no longer uses the obsolete hstrerror() function --- diff --git a/jbsockets.c b/jbsockets.c index 8101fd23..5651d485 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1,4 +1,4 @@ -const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.10 2001/06/29 13:29:15 oes Exp $"; +const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.11 2001/06/29 21:45:41 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $ @@ -35,6 +35,9 @@ const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.10 2001/06/29 13:29:15 oes Ex * * Revisions : * $Log: jbsockets.c,v $ + * Revision 1.11 2001/06/29 21:45:41 oes + * Indentation, CRLF->LF, Tab-> Space + * * Revision 1.10 2001/06/29 13:29:15 oes * - Added remote (server) host IP to csp->http->host_ip_addr_str * - Added detection of local socket IP and fqdn @@ -443,7 +446,6 @@ int accept_connection(struct client_state * csp, int fd) struct sockaddr_in *lap = (struct sockaddr_in *) &laddr; struct hostent *host = NULL; int afd, raddrlen, laddrlen; - extern int h_errno; char *p; raddrlen = sizeof raddr; @@ -468,7 +470,7 @@ int accept_connection(struct client_state * csp, int fd) host = gethostbyaddr(laddr.sa_data + 2, 4, AF_INET); if (host == NULL) { - log_error(LOG_LEVEL_ERROR, "Unable to get my own hostname: %s\n", hstrerror(h_errno)); + log_error(LOG_LEVEL_ERROR, "Unable to get my own hostname: %E\n"); } else {