top: and just eliminate a couple of unnecessary braces

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2021-08-23 00:00:00 -05:00 committed by Craig Small
parent 2c3b251b11
commit 2480bc0221

View File

@ -2455,9 +2455,9 @@ static void zap_fieldstab (void) {
Fieldstab[EU_CPN].width = digits; Fieldstab[EU_CPN].width = digits;
} }
digits = (unsigned)snprintf(buf, sizeof(buf), "%u", (unsigned)Numa_node_tot); digits = (unsigned)snprintf(buf, sizeof(buf), "%u", (unsigned)Numa_node_tot);
if (2 < digits) { if (2 < digits)
Fieldstab[EU_NMA].width = digits; Fieldstab[EU_NMA].width = digits;
}
// and accommodate optional wider non-scalable columns (maybe) // and accommodate optional wider non-scalable columns (maybe)
if (!AUTOX_MODE) { if (!AUTOX_MODE) {
Fieldstab[EU_UED].width = Fieldstab[EU_URD].width Fieldstab[EU_UED].width = Fieldstab[EU_URD].width
@ -4139,9 +4139,8 @@ static void configs_reads (void) {
p_home = NULL; p_home = NULL;
} }
} }
if (p_home) { if (p_home)
configs_path("%s/.%src", p_home, Myname); configs_path("%s/.%src", p_home, Myname);
}
if (!(fp = fopen(Rc_name, "r"))) { if (!(fp = fopen(Rc_name, "r"))) {
p = getenv("XDG_CONFIG_HOME"); p = getenv("XDG_CONFIG_HOME");
@ -5248,9 +5247,9 @@ static void keys_global (int ch) {
show_msg(N_txt(NOT_smp_cpus_txt)); show_msg(N_txt(NOT_smp_cpus_txt));
break; break;
case 'k': case 'k':
if (Secure_mode) { if (Secure_mode)
show_msg(N_txt(NOT_onsecure_txt)); show_msg(N_txt(NOT_onsecure_txt));
} else { else {
int sig = SIGTERM, int sig = SIGTERM,
def = w->ppt[w->begtask]->tid, def = w->ppt[w->begtask]->tid,
pid = get_int(fmtmk(N_txt(GET_pid2kill_fmt), def)); pid = get_int(fmtmk(N_txt(GET_pid2kill_fmt), def));
@ -6371,9 +6370,9 @@ static const char *task_show (const WIN_t *q, const int idx) {
cp = make_num(p->ppid, W, Jn, AUTOX_NO, 0); cp = make_num(p->ppid, W, Jn, AUTOX_NO, 0);
break; break;
case EU_PRI: case EU_PRI:
if (-99 > p->priority || 999 < p->priority) { if (-99 > p->priority || 999 < p->priority)
cp = make_str("rt", W, Jn, AUTOX_NO); cp = make_str("rt", W, Jn, AUTOX_NO);
} else else
cp = make_num(p->priority, W, Jn, AUTOX_NO, 0); cp = make_num(p->priority, W, Jn, AUTOX_NO, 0);
break; break;
case EU_RES: case EU_RES: