diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
commit | 5e34ff29bcc870936ab18172f438a34d042d4e03 (patch) | |
tree | a5e7a528f2f916eb883f1161eadceacdf2dca4be /procps/top.c | |
parent | 8b814b4a349e2262c0ad25793b05206a14651ebb (diff) | |
download | busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.gz busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.bz2 busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.zip |
*: 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!
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) | |||
889 | int lines_rem; | 889 | int lines_rem; |
890 | unsigned interval; | 890 | unsigned interval; |
891 | char *str_interval, *str_iterations; | 891 | char *str_interval, *str_iterations; |
892 | SKIP_FEATURE_TOPMEM(const) unsigned scan_mask = TOP_MASK; | 892 | IF_NOT_FEATURE_TOPMEM(const) unsigned scan_mask = TOP_MASK; |
893 | #if ENABLE_FEATURE_USE_TERMIOS | 893 | #if ENABLE_FEATURE_USE_TERMIOS |
894 | struct termios new_settings; | 894 | struct termios new_settings; |
895 | struct pollfd pfd[1]; | 895 | struct pollfd pfd[1]; |
@@ -1054,11 +1054,11 @@ int top_main(int argc UNUSED_PARAM, char **argv) | |||
1054 | if (c == 'q') | 1054 | if (c == 'q') |
1055 | break; | 1055 | break; |
1056 | if (c == 'n') { | 1056 | if (c == 'n') { |
1057 | USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) | 1057 | IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) |
1058 | sort_function[0] = pid_sort; | 1058 | sort_function[0] = pid_sort; |
1059 | } | 1059 | } |
1060 | if (c == 'm') { | 1060 | if (c == 'm') { |
1061 | USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) | 1061 | IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) |
1062 | sort_function[0] = mem_sort; | 1062 | sort_function[0] = mem_sort; |
1063 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE | 1063 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE |
1064 | sort_function[1] = pcpu_sort; | 1064 | sort_function[1] = pcpu_sort; |
@@ -1067,13 +1067,13 @@ int top_main(int argc UNUSED_PARAM, char **argv) | |||
1067 | } | 1067 | } |
1068 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE | 1068 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE |
1069 | if (c == 'p') { | 1069 | if (c == 'p') { |
1070 | USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) | 1070 | IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) |
1071 | sort_function[0] = pcpu_sort; | 1071 | sort_function[0] = pcpu_sort; |
1072 | sort_function[1] = mem_sort; | 1072 | sort_function[1] = mem_sort; |
1073 | sort_function[2] = time_sort; | 1073 | sort_function[2] = time_sort; |
1074 | } | 1074 | } |
1075 | if (c == 't') { | 1075 | if (c == 't') { |
1076 | USE_FEATURE_TOPMEM(scan_mask = TOP_MASK;) | 1076 | IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;) |
1077 | sort_function[0] = time_sort; | 1077 | sort_function[0] = time_sort; |
1078 | sort_function[1] = mem_sort; | 1078 | sort_function[1] = mem_sort; |
1079 | sort_function[2] = pcpu_sort; | 1079 | sort_function[2] = pcpu_sort; |