From: Jim Warner Date: Thu, 28 Sep 2017 05:11:11 +0000 (-0500) Subject: top: correct a minor instance of wrong NLS macro usage X-Git-Tag: v4.0.0~699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07530a86ef264d78fa432612dadcf9e426a5a3cb;p=procps-ng top: correct a minor instance of wrong NLS macro usage The 'N_fmt' and 'N_txt' macros are interchangeable and just highlight the 2 str types found in Norm_nlstable. The change in this patch (strictly cosmetic) was found during the coding for what will be the next 2 commits. It has not been squashed into either of those so as to not muddy up the waters for what was a major refactor. Signed-off-by: Jim Warner --- diff --git a/top/top.c b/top/top.c index 2439b8b3..cacee284 100644 --- a/top/top.c +++ b/top/top.c @@ -4004,7 +4004,7 @@ static void keys_global (int ch) { else { int val, def = PID_VAL(EU_PID, s_int, w->ppt[w->begtask]), - pid = get_int(fmtmk(N_txt(GET_pid2nice_fmt), def)); + pid = get_int(fmtmk(N_fmt(GET_pid2nice_fmt), def)); if (pid > GET_NUM_ESC) { if (pid == GET_NUM_NOT) pid = def; val = get_int(fmtmk(N_fmt(GET_nice_num_fmt), pid));