summaryrefslogtreecommitdiff
path: root/usr.bin/tip
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-11 19:59:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-11 19:59:08 +0000
commita8a02c3665de209f4c02c3f4e0e382eaf75ac327 (patch)
treea1a7c98291634768dacf9cb4777b642832b61974 /usr.bin/tip
parent8223a5ee06b199adfe42ffb2f13abfb8cdb36ab6 (diff)
use STDERR_FILENO; ok cloder
Diffstat (limited to 'usr.bin/tip')
-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 e84ec4113bb..8d48fa6cac1 100644
--- a/usr.bin/tip/tipout.c
+++ b/usr.bin/tip/tipout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tipout.c,v 1.11 2004/05/26 18:17:59 deraadt Exp $ */
+/* $OpenBSD: tipout.c,v 1.12 2005/04/11 19:59:07 deraadt Exp $ */
/* $NetBSD: tipout.c,v 1.5 1996/12/29 10:34:12 cgd Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)tipout.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] = "$OpenBSD: tipout.c,v 1.11 2004/05/26 18:17:59 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: tipout.c,v 1.12 2005/04/11 19:59:07 deraadt Exp $";
#endif /* not lint */
#include "tip.h"
@@ -155,7 +155,7 @@ tipout()
sigprocmask(SIG_BLOCK, &mask, NULL);
for (cp = buf; cp < buf + cnt; cp++)
*cp &= STRIP_PAR;
- write(1, buf, cnt);
+ write(STDOUT_FILENO, buf, cnt);
if (boolean(value(SCRIPT)) && fscript != NULL) {
if (!boolean(value(BEAUTIFY))) {
fwrite(buf, 1, cnt, fscript);