diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-27 13:19:17 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-11-27 13:19:17 +0000 |
commit | 57682724653907cf1e2391849cbe54ee3b9ffa6a (patch) | |
tree | 5d789e6447711597abeb11f7c1d957009c827c96 /usr.bin/top/top.c | |
parent | 4638f4c62fca052ebe33a7f067fb928ecfecdeb0 (diff) |
use symbolic constant 'Infinity' instead of -1 where appropriate; from
Mark Lumsden
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r-- | usr.bin/top/top.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c index 03d7329c6b3..7d914001184 100644 --- a/usr.bin/top/top.c +++ b/usr.bin/top/top.c @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.63 2007/11/22 11:01:04 otto Exp $ */ +/* $OpenBSD: top.c,v 1.64 2007/11/27 13:19:16 otto Exp $ */ /* * Top users/processes display for Unix @@ -671,7 +671,8 @@ rundisplay(void) putr(); } else if (i == 0) display_header(No); - else if ((i > topn || i == -1) && topn == 0) { + else if ((i > topn || i == Infinity) + && topn == 0) { /* redraw the header */ display_header(Yes); } |