From b079d130d72da94c22aefd338853b4bc2eca554d Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 11 Apr 2012 04:11:12 -0500 Subject: [PATCH] top: miscellaneous cosmetic non-logic changes Signed-off-by: Jim Warner --- top/top.c | 8 ++++---- top/top.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/top/top.c b/top/top.c index 6da43bda..65498a13 100644 --- a/top/top.c +++ b/top/top.c @@ -461,10 +461,10 @@ static void bye_bye (const char *str) { if (str) { fputs(str, stderr); - exit(1); + exit(EXIT_FAILURE); } putp("\n"); - exit(0); + exit(EXIT_SUCCESS); } // end: bye_bye @@ -2566,7 +2566,7 @@ static WIN_t *win_select (char ch) { so we must try to get our own darn ch by begging the user... */ if (!ch) { show_pmt(N_txt(CHOOSE_group_txt)); - if (1 > chin(0, (char *)&ch, 1)) return Curwin; + if (1 > chin(0, (char *)&ch, 1)) return w; } switch (ch) { case 'a': // we don't carry 'a' / 'w' in our @@ -2796,7 +2796,7 @@ static void file_writerc (void) { #ifndef WARN_CFG_OFF if (Rc_converted) { - show_pmt(N_fmt(XTRA_warncfg_txt)); + show_pmt(N_txt(XTRA_warncfg_txt)); if ('y' != tolower(keyin(0))) return; Rc_converted = 0; diff --git a/top/top.h b/top/top.h index 6f2bc30b..8ca5d587 100644 --- a/top/top.h +++ b/top/top.h @@ -277,7 +277,7 @@ typedef struct CPU_t { #define Show_FOREST 0x000002 // 'V' - show cmd/cmdlines with ascii art #define Qsrt_NORMAL 0x000004 // 'R' - reversed column sort (high to low) // these flag(s) have no command as such - they're for internal use -#define EQUWINS_xxx 0x000001 // rebalance all wins & tasks (off 'i'/ 'n') +#define EQUWINS_xxx 0x000001 // rebalance all wins & tasks (off i,n,u/U) // Default flags if there's no rcfile to provide user customizations #define DEF_WINFLGS ( View_LOADAV | View_STATES | View_CPUSUM | View_MEMORY \ -- 2.40.0