]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
recv -> comm_recv().
authoradrian <>
Mon, 21 Oct 2002 11:49:59 +0000 (11:49 +0000)
committeradrian <>
Mon, 21 Oct 2002 11:49:59 +0000 (11:49 +0000)
src/icmp.cc
src/ipc.cc

index 3e7a69cd3e86f0332e22e27c958c570153679a9e..35aeb9ef4855485bde0698c33c87028d45421269 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: icmp.cc,v 1.75 2002/04/04 23:59:25 hno Exp $
+ * $Id: icmp.cc,v 1.76 2002/10/21 05:49:59 adrian Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -35,6 +35,7 @@
 
 
 #include "squid.h"
+#include "comm.h"
 
 #if USE_ICMP
 
@@ -73,8 +74,7 @@ icmpRecv(int unused1, void *unused2)
     static struct sockaddr_in F;
     commSetSelect(icmp_sock, COMM_SELECT_READ, icmpRecv, NULL, 0);
     memset(&preply, '\0', sizeof(pingerReplyData));
-    statCounter.syscalls.sock.recvfroms++;
-    n = recv(icmp_sock,
+    n = comm_recv(icmp_sock,
        (char *) &preply,
        sizeof(pingerReplyData),
        0);
index a82b81d9a07534952cbd129effa3d0408cf78e00..9eb054b420eb0f7e76ffc404152a6af1867e5faf 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipc.cc,v 1.30 2002/10/14 08:16:58 robertc Exp $
+ * $Id: ipc.cc,v 1.31 2002/10/21 05:49:59 adrian Exp $
  *
  * DEBUG: section 54    Interprocess Communication
  * AUTHOR: Duane Wessels
@@ -206,7 +206,7 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
        }
        memset(hello_buf, '\0', HELLO_BUF_SZ);
        if (type == IPC_UDP_SOCKET)
-           x = recv(prfd, hello_buf, HELLO_BUF_SZ - 1, 0);
+           x = comm_recv(prfd, hello_buf, HELLO_BUF_SZ - 1, 0);
        else
            x = read(prfd, hello_buf, HELLO_BUF_SZ - 1);
        if (x < 0) {