projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96163ab
)
Bugfix: accept_connection no longer uses the obsolete hstrerror() function
author
oes
<oes@users.sourceforge.net>
Sun, 1 Jul 2001 17:04:11 +0000
(17:04 +0000)
committer
oes
<oes@users.sourceforge.net>
Sun, 1 Jul 2001 17:04:11 +0000
(17:04 +0000)
jbsockets.c
patch
|
blob
|
history
diff --git
a/jbsockets.c
b/jbsockets.c
index
8101fd2
..
5651d48
100644
(file)
--- a/
jbsockets.c
+++ b/
jbsockets.c
@@
-1,4
+1,4
@@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.1
0 2001/06/29 13:29:15
oes Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.1
1 2001/06/29 21:45:41
oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
/*********************************************************************
*
* 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 $
*
* 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
* 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;
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;
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)
{
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
{
}
else
{