/*
- * $Id: dns_internal.cc,v 1.95 2007/04/10 17:42:43 rousskov Exp $
+ * $Id: dns_internal.cc,v 1.96 2007/04/13 17:04:00 wessels Exp $
*
* DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c
* AUTHOR: Duane Wessels
idnsRead(int fd, void *data)
{
int *N = &incoming_sockets_accepted;
- ssize_t len;
+ int len;
struct sockaddr_in from;
socklen_t from_len;
/*
- * $Id: icp_v2.cc,v 1.94 2006/08/19 12:31:21 robertc Exp $
+ * $Id: icp_v2.cc,v 1.95 2007/04/13 17:04:00 wessels Exp $
*
* DEBUG: section 12 Internet Cache Protocol
* AUTHOR: Duane Wessels
struct sockaddr_in from;
socklen_t from_len;
LOCAL_ARRAY(char, buf, SQUID_UDP_SO_RCVBUF);
- size_t len;
+ int len;
int icp_version;
int max = INCOMING_ICP_MAX;
commSetSelect(sock, COMM_SELECT_READ, icpHandleUdp, NULL, 0);
icpPktDump(buf);
#endif
- if (len < sizeof(icp_common_t)) {
+ if ((size_t) len < sizeof(icp_common_t)) {
debug(12, 4) ("icpHandleUdp: Ignoring too-small UDP packet\n");
break;
}