24 lines
720 B
Plaintext
24 lines
720 B
Plaintext
64 bit clean; ross
|
|
|
|
$OpenBSD: patch-unix_tcp_c,v 1.2 2003/12/14 01:39:18 naddy Exp $
|
|
--- unix/tcp.c.orig 2003-05-29 08:08:49.000000000 +0200
|
|
+++ unix/tcp.c 2003-11-11 21:39:38.000000000 +0100
|
|
@@ -395,7 +395,7 @@ ftcp_open (qconn, ibaud, fwait, fuser)
|
|
while (! FGOT_SIGNAL ())
|
|
{
|
|
sockaddr_storage speer;
|
|
- size_t clen;
|
|
+ int clen;
|
|
int onew;
|
|
pid_t ipid;
|
|
|
|
@@ -613,7 +613,7 @@ ftcp_dial (qconn, puuconf, qsys, zphone,
|
|
|
|
sin.sin_family = AF_INET;
|
|
sin.sin_addr.s_addr = inet_addr ((char *) zhost);
|
|
- if ((long) sin.sin_addr.s_addr == (long) -1)
|
|
+ if (sin.sin_addr.s_addr == INADDR_NONE)
|
|
{
|
|
ulog (LOG_ERROR, "%s: unknown host name", zhost);
|
|
return FALSE;
|