13 lines
504 B
Plaintext
13 lines
504 B
Plaintext
$OpenBSD: patch-net-ip_cc,v 1.1 2001/07/30 15:33:22 espie Exp $
|
|
--- net-ip.cc.orig Thu May 16 14:28:06 1996
|
|
+++ net-ip.cc Mon Jul 30 17:25:38 2001
|
|
@@ -204,7 +204,7 @@ void IPNetwork::localname(sockaddr_in* p
|
|
memset((char *)p, 0, sizeof(*p));
|
|
p->sin_family = AF_INET;
|
|
int len = sizeof(*p);
|
|
- if (getsockname(ssock_, (struct sockaddr *)p, &len) < 0) {
|
|
+ if (getsockname(ssock_, (struct sockaddr *)p, (socklen_t *) &len) < 0) {
|
|
perror("getsockname");
|
|
p->sin_addr.s_addr = 0;
|
|
p->sin_port = 0;
|