]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
cast sockaddr arg to getsockname()
authorwessels <>
Sat, 21 Sep 1996 05:33:17 +0000 (05:33 +0000)
committerwessels <>
Sat, 21 Sep 1996 05:33:17 +0000 (05:33 +0000)
src/icmp.cc

index b715910d099e15e4679158b03f92aa4541afda74..42faf07c3e1ee85229ebe49ec4ed00fb2bb4383e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: icmp.cc,v 1.10 1996/09/20 23:26:56 wessels Exp $
+ * $Id: icmp.cc,v 1.11 1996/09/20 23:33:17 wessels Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -84,10 +84,10 @@ icmpOpen(void)
        debug(37, 0, "icmpOpen: child_sock: %s\n", xstrerror());
        return;
     }
-    getsockname(icmp_sock, &S, &namelen);
+    getsockname(icmp_sock, (struct sockaddr *) &S, &namelen);
     if (comm_connect_addr(child_sock, &S) != COMM_OK)
        fatal_dump(xstrerror());
-    getsockname(child_sock, &S, &namelen);
+    getsockname(child_sock, (struct sockaddr *) &S, &namelen);
     if (comm_connect_addr(icmp_sock, &S) != COMM_OK)
        fatal_dump(xstrerror());
     if ((pid = fork()) < 0) {