]> granicus.if.org Git - procps-ng/commitdiff
top: correct a minor instance of wrong NLS macro usage
authorJim Warner <james.warner@comcast.net>
Wed, 27 Sep 2017 05:01:11 +0000 (00:01 -0500)
committerCraig Small <csmall@enc.com.au>
Sun, 1 Oct 2017 11:19:58 +0000 (22:19 +1100)
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 <james.warner@comcast.net>
top/top.c

index 948805e468d67293163d1f8cd4f9dada66d75464..6c0b2ca198fe1179b5bc49e1981f90b1febf964f 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -4434,7 +4434,7 @@ static void keys_global (int ch) {
          else {
             int val,
                 def = w->ppt[w->begtask]->tid,
-                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));