top: miscellaneous accumulated tweaks to code/comments

This patch includes the following miscellaneous stuff:

. ensure 1 space before any '*' ptr sizeof() reference

. explain the rather cryptic 'ioa' guy a little better

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2018-08-08 00:00:00 -05:00 committed by Craig Small
parent 65feb3c558
commit 52376d16e2

View File

@ -898,10 +898,10 @@ static char *alloc_s (const char *str) {
/*
* This function is used in connection with raw single byte
* unsolicited keyboard input that's susceptible to SIGWINCH
* interrupts (or any other signal). He also supports timout
* in the absence of user keystrokes or some signal interrupt. */
* An 'I/O available' routine which will detect raw single byte |
* unsolicited keyboard input which was susceptible to SIGWINCH |
* interrupts (or any other signal). He'll also support timout |
* in the absence of any user keystrokes or a signal interrupt. | */
static inline int ioa (struct timespec *ts) {
fd_set fs;
int rc;
@ -1784,7 +1784,7 @@ static void build_headers (void) {
#endif
int i;
// reset the newlib enum selected indicator
// ensure fields not visible incur no significant library costs
for (i = 0; i < MAXTBL(Fieldstab); i++) {
Pids_itms[i] = PIDS_extra;
}