summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordownsj <downsj@openbsd.org>1999-04-26 01:34:04 +0000
committerdownsj <downsj@openbsd.org>1999-04-26 01:34:04 +0000
commit6619a73d9257a8fdb2d2418ec6a389d7bc0367ac (patch)
tree0f980c0a367c9cd21930c79bee40021afe558915
parentDocument .Bsx and .Fx macros. (diff)
downloadwireguard-openbsd-6619a73d9257a8fdb2d2418ec6a389d7bc0367ac.tar.xz
wireguard-openbsd-6619a73d9257a8fdb2d2418ec6a389d7bc0367ac.zip
s/STDIN_FILENO/STDOUT_FILENO/ to match top distribution code, rohee@essi.fr.
-rw-r--r--usr.bin/top/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/screen.c b/usr.bin/top/screen.c
index 60024314263..fd297a8746a 100644
--- a/usr.bin/top/screen.c
+++ b/usr.bin/top/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.5 1997/12/02 17:56:30 bitblt Exp $ */
+/* $OpenBSD: screen.c,v 1.6 1999/04/26 01:34:04 downsj Exp $ */
/*
* Top users/processes display for Unix
@@ -258,7 +258,7 @@ void get_screensize()
{
struct winsize ws;
- if (ioctl (STDIN_FILENO, TIOCGWINSZ, &ws) != -1)
+ if (ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
{
if (ws.ws_row != 0)
{