$NetBSD: patch-ae,v 1.1 2002/08/14 16:18:41 tron Exp $ --- Network/UDPConnection.cc.orig Tue Jul 7 23:02:47 1998 +++ Network/UDPConnection.cc Wed Aug 14 18:05:03 2002 @@ -66,7 +66,7 @@ } DEBUGP("Connecting to server" << hostname << ", port " << peer_port); - int addr_len = sizeof(addr); + socklen_t addr_len = sizeof(addr); if (getsockname (socket_fd, (sockaddr *) &a, &addr_len)) { close(socket_fd); StdError("can't get sockname"); @@ -116,7 +116,7 @@ StdError("can't bind socket"); return FALSE; } - int addr_len = sizeof(addr); + socklen_t addr_len = sizeof(addr); if (getsockname (socket_fd, (sockaddr *) &addr, &addr_len)) { close(socket_fd); StdError("can't get sockname"); @@ -166,7 +166,7 @@ return 0; // some data! - int addr_len = sizeof(addr); + socklen_t addr_len = sizeof(addr); sockaddr_in in_addr; bzero(&in_addr, addr_len); int ret = recvfrom (socket_fd, buffer, maxsize, 0, (sockaddr *) &in_addr, &addr_len);