]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed build error on 64 bit Linux
authorserassio <>
Sat, 8 Oct 2005 14:39:42 +0000 (14:39 +0000)
committerserassio <>
Sat, 8 Oct 2005 14:39:42 +0000 (14:39 +0000)
src/IPInterception.cc

index ed00b7f48ba03e88aa8131311600979713102a05..a814c8d396dd37aefb4734e8b6ebdb8b4e75ef47 100644 (file)
@@ -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)