]> granicus.if.org Git - procps-ng/commitdiff
top: correct a minor instance of wrong NLS macro usage
authorJim Warner <james.warner@comcast.net>
Thu, 28 Sep 2017 05:11:11 +0000 (00:11 -0500)
committerCraig Small <csmall@enc.com.au>
Sun, 1 Oct 2017 11:25:18 +0000 (22:25 +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 2439b8b31978ac2ad09c938a2056c1d17f4c5482..cacee284e19c0972bb3c59d3f762b8f94717359b 100644 (file)
--- 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));