X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=jbsockets.c;h=562265101288ce9838099f326df8bc21dbc84e11;hb=3c64dba7a2f09839f3bd99fe27a5229f4da4d592;hp=983f0c1611e38d3b0ca80b3e7cf3bdcde1966376;hpb=292da21cea2a42b0896d667cff7201ef0ea2894e;p=privoxy.git diff --git a/jbsockets.c b/jbsockets.c index 983f0c16..56226510 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1,4 +1,4 @@ -const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.112 2011/12/31 14:43:20 fabiankeil Exp $"; +const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.113 2012/03/09 16:23:50 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $ @@ -1342,11 +1342,7 @@ unsigned long resolve_hostname_to_ip(const char *host) log_error(LOG_LEVEL_ERROR, "hostname %s resolves to unknown address type.", host); return(INADDR_NONE); } - memcpy( - (char *) &inaddr.sin_addr, - (char *) hostp->h_addr, - sizeof(inaddr.sin_addr) - ); + memcpy((char *)&inaddr.sin_addr, (char *)hostp->h_addr, sizeof(inaddr.sin_addr)); } return(inaddr.sin_addr.s_addr);