diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 19:59:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 19:59:08 +0000 |
commit | a8a02c3665de209f4c02c3f4e0e382eaf75ac327 (patch) | |
tree | a1a7c98291634768dacf9cb4777b642832b61974 /usr.bin/window/ttoutput.c | |
parent | 8223a5ee06b199adfe42ffb2f13abfb8cdb36ab6 (diff) |
use STDERR_FILENO; ok cloder
Diffstat (limited to 'usr.bin/window/ttoutput.c')
-rw-r--r-- | usr.bin/window/ttoutput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/window/ttoutput.c b/usr.bin/window/ttoutput.c index 6641bfd18bc..1d9b3fd6008 100644 --- a/usr.bin/window/ttoutput.c +++ b/usr.bin/window/ttoutput.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttoutput.c,v 1.7 2004/03/16 01:11:09 tedu Exp $ */ +/* $OpenBSD: ttoutput.c,v 1.8 2005/04/11 19:59:07 deraadt Exp $ */ /* $NetBSD: ttoutput.c,v 1.3 1995/09/28 10:34:51 tls Exp $ */ /* @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)ttoutput.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: ttoutput.c,v 1.7 2004/03/16 01:11:09 tedu Exp $"; +static char rcsid[] = "$OpenBSD: ttoutput.c,v 1.8 2005/04/11 19:59:07 deraadt Exp $"; #endif #endif /* not lint */ @@ -69,7 +69,7 @@ ttflush() wwnflush++; for (p = tt_ob; p < tt_obp;) { wwnwr++; - n = write(1, p, tt_obp - p); + n = write(STDOUT_FILENO, p, tt_obp - p); if (n < 0) { wwnwre++; if (errno != EWOULDBLOCK) { |