]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix ARP ACL build error on all not Linux platforms.
authorserassio <>
Mon, 21 Jan 2008 00:23:19 +0000 (00:23 +0000)
committerserassio <>
Mon, 21 Jan 2008 00:23:19 +0000 (00:23 +0000)
src/ACLARP.cc

index cb062169a5e2172125980b48147570dbe4ff6edd..7b00f4a04dd1826d392e79ad69baa6e3a150e9d4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ACLARP.cc,v 1.26 2007/12/16 22:32:09 amosjeffries Exp $
+ * $Id: ACLARP.cc,v 1.27 2008/01/20 17:23:19 serassio Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -246,16 +246,15 @@ aclMatchArp(SplayNode<acl_arp_data *> **dataptr, IPAddress &c)
 
     IPAddress ipAddr = c;
 
-    struct sockaddr_in *sa = NULL;
-
 #if defined(_SQUID_LINUX_)
 
     unsigned char ifbuffer[sizeof(struct ifreq) * 64];
-
     struct ifconf ifc;
+    struct sockaddr_in *sa = NULL;
 
     struct ifreq *ifr;
     int offset;
+
     SplayNode<acl_arp_data*> **Top = dataptr;
     /*
      * The linux kernel 2.2 maintains per interface ARP caches and