openbsd-ports/net/uucp/patches/patch-unix_tcp_c

24 lines
658 B
Plaintext

64 bit clean; ross
$OpenBSD: patch-unix_tcp_c,v 1.1.1.1 2001/07/13 02:27:16 fgsch Exp $
--- unix/tcp.c.orig Sun Aug 20 15:30:45 1995
+++ unix/tcp.c Thu Jul 12 21:56:10 2001
@@ -231,7 +231,7 @@ ftcp_open (qconn, ibaud, fwait)
while (! FGOT_SIGNAL ())
{
- size_t clen;
+ int clen;
int onew;
pid_t ipid;
@@ -370,7 +370,7 @@ ftcp_dial (qconn, puuconf, qsys, zphone,
s.sin_family = AF_INET;
s.sin_addr.s_addr = inet_addr ((char *) zhost);
- if ((long) s.sin_addr.s_addr == (long) -1)
+ if (s.sin_addr.s_addr == INADDR_NONE)
{
ulog (LOG_ERROR, "%s: unknown host name", zhost);
return FALSE;