library: miscellaneous tweaks for code and/or comments
Summarized below, miscellany addressed in this commit: . deleted extraneous newline(s) for consistent spacing Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
80bdaca31d
commit
65000d7c64
@ -233,7 +233,6 @@ REG_set(TICS_USER, ull_int, utime)
|
|||||||
REG_set(TICS_USER_C, ull_int, cutime)
|
REG_set(TICS_USER_C, ull_int, cutime)
|
||||||
setDECL(TIME_ALL) { R->result.ull_int = (P->utime + P->stime) / I->hertz; }
|
setDECL(TIME_ALL) { R->result.ull_int = (P->utime + P->stime) / I->hertz; }
|
||||||
setDECL(TIME_ELAPSED) { R->result.ull_int = (I->boot_seconds >= (P->start_time / I->hertz)) ? I->boot_seconds - (P->start_time / I->hertz) : 0; }
|
setDECL(TIME_ELAPSED) { R->result.ull_int = (I->boot_seconds >= (P->start_time / I->hertz)) ? I->boot_seconds - (P->start_time / I->hertz) : 0; }
|
||||||
|
|
||||||
REG_set(TIME_START, ull_int, start_time)
|
REG_set(TIME_START, ull_int, start_time)
|
||||||
REG_set(TTY, s_int, tty)
|
REG_set(TTY, s_int, tty)
|
||||||
setDECL(TTY_NAME) { char buf[64]; (void)I; dev_to_tty(buf, sizeof(buf), P->tty, P->tid, ABBREV_DEV); R->result.str = strdup(buf); }
|
setDECL(TTY_NAME) { char buf[64]; (void)I; dev_to_tty(buf, sizeof(buf), P->tty, P->tid, ABBREV_DEV); R->result.str = strdup(buf); }
|
||||||
|
Loading…
Reference in New Issue
Block a user