9759e5be25
- Honor CC, CFLAGS. - Make this compile with gcc3.
22 lines
772 B
Plaintext
22 lines
772 B
Plaintext
$OpenBSD: patch-net-ip_cc,v 1.1 2002/10/06 22:28:49 naddy Exp $
|
|
--- net-ip.cc.orig Tue Feb 16 15:01:42 1999
|
|
+++ net-ip.cc Sun Oct 6 23:05:29 2002
|
|
@@ -246,7 +246,7 @@ int IPNetwork::localname(sockaddr_in* p)
|
|
{
|
|
memset((char *)p, 0, sizeof(*p));
|
|
p->sin_family = AF_INET;
|
|
- int len = sizeof(*p), result =0;
|
|
+ socklen_t len = sizeof(*p), result =0;
|
|
|
|
if ((result = getsockname(ssock_, (struct sockaddr *)p, &len)) < 0) {
|
|
perror("getsockname");
|
|
@@ -469,7 +469,7 @@ you must specify a unicast destination\n
|
|
int IPNetwork::dorecv(u_char* buf, int len, Address & 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) {
|