openbsd-ports/mbone/vat/patches/patch-al
1999-08-05 00:45:50 +00:00

20 lines
603 B
Plaintext

*** net-ip.cc.orig Thu Jul 15 16:44:50 1999
--- net-ip.cc Thu Jul 15 16:45:07 1999
***************
*** 204,210 ****
memset((char *)p, 0, sizeof(*p));
p->sin_family = AF_INET;
int len = sizeof(*p);
! if (getsockname(ssock_, (struct sockaddr *)p, &len) < 0) {
perror("getsockname");
p->sin_addr.s_addr = 0;
p->sin_port = 0;
--- 204,210 ----
memset((char *)p, 0, sizeof(*p));
p->sin_family = AF_INET;
int len = sizeof(*p);
! if (getsockname(ssock_, (struct sockaddr *)p, (socklen_t *) &len) < 0) {
perror("getsockname");
p->sin_addr.s_addr = 0;
p->sin_port = 0;