From: serassio <> Date: Sat, 8 Oct 2005 14:39:42 +0000 (+0000) Subject: Fixed build error on 64 bit Linux X-Git-Tag: SQUID_3_0_PRE4~588 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=138ec6631132c50bca9888f1104fbb746bf0172b;p=thirdparty%2Fsquid.git Fixed build error on 64 bit Linux --- diff --git a/src/IPInterception.cc b/src/IPInterception.cc index ed00b7f48b..a814c8d396 100644 --- a/src/IPInterception.cc +++ b/src/IPInterception.cc @@ -1,6 +1,6 @@ /* - * $Id: IPInterception.cc,v 1.13 2005/09/25 12:36:50 serassio Exp $ + * $Id: IPInterception.cc,v 1.14 2005/10/08 08:39:42 serassio Exp $ * * DEBUG: section 89 NAT / IP Interception * AUTHOR: Robert Collins @@ -199,7 +199,7 @@ int clientNatLookup(int fd, struct sockaddr_in me, struct sockaddr_in peer, struct sockaddr_in *dst) { static time_t last_reported = 0; - size_t sock_sz = sizeof(*dst); + socklen_t sock_sz = sizeof(*dst); memcpy(dst, &me, sizeof(*dst)); if (getsockopt(fd, SOL_IP, SO_ORIGINAL_DST, dst, &sock_sz) != 0)