From: adrian <> Date: Mon, 21 Oct 2002 11:49:59 +0000 (+0000) Subject: recv -> comm_recv(). X-Git-Tag: SQUID_3_0_PRE1~609 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4b8017bceef67345ecbe5015c093b4550e6e0ba;p=thirdparty%2Fsquid.git recv -> comm_recv(). --- diff --git a/src/icmp.cc b/src/icmp.cc index 3e7a69cd3e..35aeb9ef48 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -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); diff --git a/src/ipc.cc b/src/ipc.cc index a82b81d9a0..9eb054b420 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -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) {