]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Sat, 19 Oct 1996 13:25:13 +0000 (13:25 +0000)
committerwessels <>
Sat, 19 Oct 1996 13:25:13 +0000 (13:25 +0000)
src/comm.cc
src/neighbors.cc

index b151326512d89bdefff214cb4ef82dd1e2e19e90..38b55f38c691867e1b93114e40025a0370023e2a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.91 1996/10/15 04:58:25 wessels Exp $
+ * $Id: comm.cc,v 1.92 1996/10/19 07:25:13 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -580,19 +580,6 @@ comm_udp_sendto(int fd, struct sockaddr_in *to_addr, int addr_len, char *buf, in
     return bytes_sent;
 }
 
-int
-comm_udp_recv(int fd, char *buf, int size, struct sockaddr_in *from_addr, int *from_size)
-{
-    int len = recvfrom(fd, buf, size, 0, (struct sockaddr *) from_addr,
-       from_size);
-    if (len < 0) {
-       debug(5, 1, "comm_udp_recv: recvfrom failure: FD %d: %s\n", fd,
-           xstrerror());
-       return COMM_ERROR;
-    }
-    return len;
-}
-
 void
 comm_set_stall(int fd, int delta)
 {
index cb829716456964b37f23a2383bf875ee55624d0f..05343d36fc7a5616547543b48649d5dbf1a40f10 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: neighbors.cc,v 1.69 1996/10/19 07:10:08 wessels Exp $
+ * $Id: neighbors.cc,v 1.70 1996/10/19 07:25:16 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
 
 static int edgeWouldBePinged _PARAMS((edge *, request_t *));
 static void neighborRemove _PARAMS((edge *));
-static edge *whichEdge _PARAMS((struct sockaddr_in *from));
+static edge *whichEdge _PARAMS((struct sockaddr_in * from));
 static void neighborAlive _PARAMS((edge *, MemObject *, icp_common_t *));
 
 static neighbors *friends = NULL;