From 57682724653907cf1e2391849cbe54ee3b9ffa6a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 27 Nov 2007 13:19:17 +0000 Subject: use symbolic constant 'Infinity' instead of -1 where appropriate; from Mark Lumsden --- usr.bin/top/top.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/top/top.c') 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); } -- cgit v1.2.3