]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Fri, 14 Jan 2000 14:13:16 +0000 (14:13 +0000)
committerwessels <>
Fri, 14 Jan 2000 14:13:16 +0000 (14:13 +0000)
 - These casts to send() and recvfrom() make "incompatible pointer"
   warnings go away on Solaris.

src/wccp.cc

index 4356ba8fe0e17c051215673396d521e3457fd707..7d631e762b54883d2c2b5a51cf48161b4543b9a2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: wccp.cc,v 1.12 1999/12/30 17:37:05 wessels Exp $
+ * $Id: wccp.cc,v 1.13 2000/01/14 07:13:16 wessels Exp $
  *
  * DEBUG: section 80    WCCP Support
  * AUTHOR: Glenn Chisholm
@@ -211,7 +211,7 @@ wccpHandleUdp(int sock, void *not_used)
 {
     struct sockaddr_in from;
     socklen_t from_len;
-    int len;
+    size_t len;
 
     debug(80, 6) ("wccpHandleUdp: Called.\n");
 
@@ -223,7 +223,7 @@ wccpHandleUdp(int sock, void *not_used)
     Counter.syscalls.sock.recvfroms++;
 
     len = recvfrom(sock,
-       &wccp_i_see_you,
+       (void *) &wccp_i_see_you,
        WCCP_RESPONSE_SIZE,
        0,
        (struct sockaddr *) &from,
@@ -265,7 +265,7 @@ wccpHereIam(void *voidnotused)
 
     wccp_here_i_am.id = wccp_i_see_you.id;
     send(theOutWccpConnection,
-       &wccp_here_i_am,
+       (void *) &wccp_here_i_am,
        sizeof(wccp_here_i_am),
        0);