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