pkgsrc/mbone/vat/patches/patch-an

13 lines
381 B
Text

$NetBSD: patch-an,v 1.1 2002/08/16 16:25:15 agc Exp $
--- net-ip.cc 2002/08/16 16:18:16 1.1
+++ net-ip.cc 2002/08/16 16:18:38
@@ -203,7 +203,7 @@
{
memset((char *)p, 0, sizeof(*p));
p->sin_family = AF_INET;
- int len = sizeof(*p);
+ socklen_t len = sizeof(*p);
if (getsockname(ssock_, (struct sockaddr *)p, &len) < 0) {
perror("getsockname");
p->sin_addr.s_addr = 0;