in NetBSD's src/gnu/libexec/uucp directory. Changes include: * Teaching cu(1) about hardware flow control. * Make cu(1) honor "echocheck" and "binary mode" with respect to inspecting the data stream for newlines. * Make some proper integer casts so as not to break on LP64 platforms. * Teach uucp to substitute for \H with the IP address of the system. * Avoid potential divide-by-zero errors when computing times using serial rates. * Properly initialize some variables. The main difference between this version and the one in NetBSD is the location of uucico, uuconv, and uuxqt -- the vanilla UUCP location is ${PREFIX}/sbin while the NetBSD location is /usr/libexec/uucp. Bump PKGREVISION to 1.
22 lines
661 B
Text
22 lines
661 B
Text
$NetBSD: patch-ao,v 1.1 2006/10/30 03:33:59 jlam Exp $
|
|
|
|
--- unix/tcp.c.orig 2003-05-29 02:08:49.000000000 -0400
|
|
+++ unix/tcp.c
|
|
@@ -395,7 +395,7 @@ ftcp_open (qconn, ibaud, fwait, fuser)
|
|
while (! FGOT_SIGNAL ())
|
|
{
|
|
sockaddr_storage speer;
|
|
- size_t clen;
|
|
+ socklen_t 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;
|