summaryrefslogtreecommitdiff
path: root/usr.bin/tip/remote.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-20 23:29:34 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-20 23:29:34 +0000
commit0ce00152883f9034116a966e66aa824759348016 (patch)
tree839ac7469a2f1dad6e025641d9440a8d3f8add86 /usr.bin/tip/remote.c
parent574abe5ac81d1c7d74b6329546def63982a2f172 (diff)
Incorporate some NetBSD changes:
tip.c getchar() returns an int [important since EOF == -1] (thorpej) Set CLOCAL if dc flag is set (mellon) tip.h Change booleans from char to short so that comparisons against negative values work as expected on systems with unsigned chars. (thorpej) Add boolean for dc flag (mellon) hunt.c Set O_NONBLOCK if dc flag set. Don't set HUPCL if dc flag is set. (mellon) remote.c Add boolean for dc flag (mellon)
Diffstat (limited to 'usr.bin/tip/remote.c')
-rw-r--r--usr.bin/tip/remote.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tip/remote.c b/usr.bin/tip/remote.c
index 52b7aa08e43..ac6bc48230e 100644
--- a/usr.bin/tip/remote.c
+++ b/usr.bin/tip/remote.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: remote.c,v 1.4 1997/04/02 01:47:02 millert Exp $ */
-/* $NetBSD: remote.c,v 1.4 1996/12/29 10:34:08 cgd Exp $ */
+/* $OpenBSD: remote.c,v 1.5 1997/04/20 23:29:33 millert Exp $ */
+/* $NetBSD: remote.c,v 1.5 1997/04/20 00:02:45 mellon Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)remote.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: remote.c,v 1.4 1997/04/02 01:47:02 millert Exp $";
+static char rcsid[] = "$OpenBSD: remote.c,v 1.5 1997/04/20 23:29:33 millert Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -177,6 +177,8 @@ getremcap(host)
setboolean(value(RAWFTP), 1);
if (cgetflag("hd"))
setboolean(value(HALFDUPLEX), 1);
+ if (cgetflag("dc"))
+ setboolean(value(DC), 1);
if (RE == NOSTR)
RE = (char *)"tip.record";
if (EX == NOSTR)