From: Jim Warner Date: Mon, 26 Jul 2021 05:00:00 +0000 (-0500) Subject: top: restored a function prologue lost a long time ago X-Git-Tag: v4.0.0~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=335ec18774878cb4e1e49d5129d51483027d1d01;p=procps-ng 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 --- 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' --