int x;
/* Disable handler, in case of errors. */
commSetSelect(fd, COMM_SELECT_WRITE, NULL, NULL, 0);
- while ((queue = UdpQueueHead)) {
+ while ((queue = UdpQueueHead) != NULL) {
debug(12, 5) ("icpUdpReply: FD %d sending %d bytes to %s port %d\n",
fd,
queue->len,
buf_len += sizeof(u_num32);
buf = xcalloc(buf_len, 1);
headerp = (icp_common_t *) (void *) buf;
- headerp->opcode = opcode;
+ headerp->opcode = (char) opcode;
headerp->version = ICP_VERSION_CURRENT;
- headerp->length = htons(buf_len);
+ headerp->length = (u_short) htons(buf_len);
headerp->reqnum = htonl(reqnum);
headerp->flags = htonl(flags);
headerp->pad = htonl(pad);
IcpOpcodeStr[header.opcode]);
} else {
/* call neighborsUdpAck even if ping_status != PING_WAITING */
- neighborsUdpAck(fd,
- url,
- &header,
- &from,
- entry,
- data,
- (int) data_sz);
+ neighborsUdpAck(url, &header, &from, entry);
}
break;
#endif
void
-icpHandleUdp(int sock, void *not_used)
+icpHandleUdp(int sock, void *datanotused)
{
struct sockaddr_in from;
int from_len;