]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
compiler warning
authorwessels <>
Thu, 24 Oct 1996 11:23:28 +0000 (11:23 +0000)
committerwessels <>
Thu, 24 Oct 1996 11:23:28 +0000 (11:23 +0000)
src/pinger.cc

index 7fe7c247ed06c88acb71bc1a6fdbda5cf3723824..96f7796b0cbfd75af9d2660c9883f8dc3fbdfb06 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: pinger.cc,v 1.10 1996/10/24 05:13:18 wessels Exp $
+ * $Id: pinger.cc,v 1.11 1996/10/24 05:23:28 wessels Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -306,7 +306,7 @@ static void
 pingerSendtoSquid(pingerReplyData * preply)
 {
     int len = sizeof(pingerReplyData) - 8192 + preply->psize;
-    if (send(1, preply, len, 0) < 0) {
+    if (send(1, (char *) preply, len, 0) < 0) {
        debug(37, 0, "pinger: send: %s\n", xstrerror());
        exit(1);
     }
@@ -356,7 +356,7 @@ main(int argc, char *argv[])
        if (FD_ISSET(icmp_sock, &R))
            pingerRecv();
        if (10 + last_check_time < squid_curtime) {
-           if (send(1, &tv, 0, 0) < 0)
+           if (send(1, (char *) &tv, 0, 0) < 0)
                return 1;
            last_check_time = squid_curtime;
        }