pkgsrc/mbone/vat/patches/patch-am

13 lines
401 B
Text

$NetBSD: patch-am,v 1.1 2002/08/16 16:25:15 agc Exp $
--- net.cc 2002/08/16 16:16:29 1.1
+++ net.cc 2002/08/16 16:17:05
@@ -297,7 +297,7 @@
int Network::dorecv(u_char* buf, int len, u_int32_t& from, int fd)
{
sockaddr_in sfrom;
- int fromlen = sizeof(sfrom);
+ socklen_t fromlen = sizeof(sfrom);
int cc = ::recvfrom(fd, (char*)buf, len, 0,
(sockaddr*)&sfrom, &fromlen);
if (cc < 0) {