From 335ec18774878cb4e1e49d5129d51483027d1d01 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 26 Jul 2021 00:00:00 -0500 Subject: [PATCH] top: restored a function prologue lost a long time ago For some reason, when top was modified to exploit that api, one function prologue was removed. So this commit just restores it to the 'window_show' function. Reference(s): . Aug, 2015 - adapted to new api commit 77dc22b9101af39fc30306e36d65cad2b396cc9e Signed-off-by: Jim Warner --- top/top.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/top/top.c b/top/top.c index 3c3554fe..d1cc1553 100644 --- a/top/top.c +++ b/top/top.c @@ -6122,6 +6122,9 @@ wrap_up: } // end: window_hlp + /* + * Squeeze as many tasks as we can into a single window, + * after sorting the passed proc table. */ static int window_show (WIN_t *q, int wmax) { #define sORDER CHKw(q, Qsrt_NORMAL) ? PIDS_SORT_DESCEND : PIDS_SORT_ASCEND /* the isBUSY macro determines if a task is 'active' -- -- 2.40.0