From 5e34ff29bcc870936ab18172f438a34d042d4e03 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 21 Apr 2009 11:09:40 +0000 Subject: *: mass renaming of USE_XXXX to IF_XXXX and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything! --- procps/top.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'procps/top.c') diff --git a/procps/top.c b/procps/top.c index b5951422b..8738156e1 100644 --- a/procps/top.c +++ b/procps/top.c @@ -889,7 +889,7 @@ int top_main(int argc UNUSED_PARAM, char **argv) int lines_rem; unsigned interval; char *str_interval, *str_iterations; - SKIP_FEATURE_TOPMEM(const) unsigned scan_mask = TOP_MASK; + IF_NOT_FEATURE_TOPMEM(const) unsigned scan_mask = TOP_MASK; #if ENABLE_FEATURE_USE_TERMIOS struct termios new_settings; struct pollfd pfd[1]; @@ -1054,11 +1054,11 @@ int top_main(int argc UNUSED_PARAM, char **argv) if (c == 'q') break; if (c == 'n') { - USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) + IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) sort_function[0] = pid_sort; } if (c == 'm') { - USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) + IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) sort_function[0] = mem_sort; #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE sort_function[1] = pcpu_sort; @@ -1067,13 +1067,13 @@ int top_main(int argc UNUSED_PARAM, char **argv) } #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE if (c == 'p') { - USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) + IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) sort_function[0] = pcpu_sort; sort_function[1] = mem_sort; sort_function[2] = time_sort; } if (c == 't') { - USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) + IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) sort_function[0] = time_sort; sort_function[1] = mem_sort; sort_function[2] = pcpu_sort; -- cgit v1.2.3