summaryrefslogtreecommitdiffstats
path: root/usr.bin/tip/tipout.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1995-12-14 03:12:14 +0000
committerderaadt <deraadt@openbsd.org>1995-12-14 03:12:14 +0000
commit60b35d9da9c8bab5ed6c204ef6d03ccc74665d8c (patch)
tree3d3615881327f5cde08e6171847e15d2fcb38f1d /usr.bin/tip/tipout.c
parentupdate from netbsd (diff)
downloadwireguard-openbsd-60b35d9da9c8bab5ed6c204ef6d03ccc74665d8c.tar.xz
wireguard-openbsd-60b35d9da9c8bab5ed6c204ef6d03ccc74665d8c.zip
from netbsd:
Convert to termios (from Scott Reynolds; PR#1621). 8-bit patches (from Matthieu Herrb; PR#1384).
Diffstat (limited to 'usr.bin/tip/tipout.c')
-rw-r--r--usr.bin/tip/tipout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/tipout.c b/usr.bin/tip/tipout.c
index 9ee5a02b0b6..08571567020 100644
--- a/usr.bin/tip/tipout.c
+++ b/usr.bin/tip/tipout.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tipout.c,v 1.3 1994/12/08 09:31:12 jtc Exp $ */
+/* $NetBSD: tipout.c,v 1.4 1995/10/29 00:49:45 pk Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)tipout.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$NetBSD: tipout.c,v 1.3 1994/12/08 09:31:12 jtc Exp $";
+static char rcsid[] = "$NetBSD: tipout.c,v 1.4 1995/10/29 00:49:45 pk Exp $";
#endif /* not lint */
#include "tip.h"
@@ -147,7 +147,7 @@ tipout()
#define ALLSIGS sigmask(SIGEMT)|sigmask(SIGTERM)|sigmask(SIGIOT)|sigmask(SIGSYS)
omask = sigblock(ALLSIGS);
for (cp = buf; cp < buf + cnt; cp++)
- *cp &= 0177;
+ *cp &= STRIP_PAR;
write(1, buf, cnt);
if (boolean(value(SCRIPT)) && fscript != NULL) {
if (!boolean(value(BEAUTIFY))) {