projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f67326f
)
Fixed compiler warning by adding a cast
author
jongfoster
<jongfoster@users.sourceforge.net>
Sun, 29 Jul 2001 17:40:43 +0000
(17:40 +0000)
committer
jongfoster
<jongfoster@users.sourceforge.net>
Sun, 29 Jul 2001 17:40:43 +0000
(17:40 +0000)
jbsockets.c
patch
|
blob
|
history
diff --git
a/jbsockets.c
b/jbsockets.c
index
3f54271
..
5da793e
100644
(file)
--- a/
jbsockets.c
+++ b/
jbsockets.c
@@
-1,4
+1,4
@@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.1
3 2001/07/15 13:56:57 jongfoster
Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.1
4 2001/07/18 13:47:59 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.13 2001/07/15 13:56:57 jongfo
*
* Revisions :
* $Log: jbsockets.c,v $
*
* Revisions :
* $Log: jbsockets.c,v $
+ * Revision 1.14 2001/07/18 13:47:59 oes
+ * Eliminated dirty hack for getsockbyname()
+ *
* Revision 1.13 2001/07/15 13:56:57 jongfoster
* Removing unused local variable.
*
* Revision 1.13 2001/07/15 13:56:57 jongfoster
* Removing unused local variable.
*
@@
-471,7
+474,8
@@
int accept_connection(struct client_state * csp, int fd)
{
csp->my_ip_addr_str = strdup(inet_ntoa(server.sin_addr));
{
csp->my_ip_addr_str = strdup(inet_ntoa(server.sin_addr));
- host = gethostbyaddr(&server.sin_addr, sizeof(server.sin_addr), AF_INET);
+ host = gethostbyaddr((const char *)&server.sin_addr,
+ sizeof(server.sin_addr), AF_INET);
if (host == NULL)
{
log_error(LOG_LEVEL_ERROR, "Unable to get my own hostname: %E\n");
if (host == NULL)
{
log_error(LOG_LEVEL_ERROR, "Unable to get my own hostname: %E\n");