top: restored a function prologue lost a long time ago

For some reason, when top was modified to exploit that
<pids> api, one function prologue was removed. So this
commit just restores it to the 'window_show' function.

Reference(s):
. Aug, 2015 - adapted to new <pids> api
commit 77dc22b910

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2021-07-26 00:00:00 -05:00 committed by Craig Small
parent c23d2708d4
commit 335ec18774

View File

@ -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' --