aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/brctl.c4
-rw-r--r--procps/top.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/networking/brctl.c b/networking/brctl.c
index 68725f93c..2f4ac4a87 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -107,7 +107,7 @@ static unsigned str_to_jiffies(const char *time_str)
107 107
108#define filedata bb_common_bufsiz1 108#define filedata bb_common_bufsiz1
109 109
110#if ENABLE_FEATURE_BRCTL_SHOW 110#if ENABLE_FEATURE_BRCTL_SHOW || ENABLE_FEATURE_BRCTL_FANCY
111static int read_file(const char *name) 111static int read_file(const char *name)
112{ 112{
113 int n = open_read_close(name, filedata, COMMON_BUFSIZE - 1); 113 int n = open_read_close(name, filedata, COMMON_BUFSIZE - 1);
@@ -120,7 +120,9 @@ static int read_file(const char *name)
120 } 120 }
121 return n; 121 return n;
122} 122}
123#endif
123 124
125#if ENABLE_FEATURE_BRCTL_SHOW
124/* NB: we are in /sys/class/net 126/* NB: we are in /sys/class/net
125 */ 127 */
126static int show_bridge(const char *name, int need_hdr) 128static int show_bridge(const char *name, int need_hdr)
diff --git a/procps/top.c b/procps/top.c
index 5c41e8e10..8d39526ff 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -979,9 +979,11 @@ static unsigned handle_input(unsigned scan_mask, duration_t interval)
979 IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK) 979 IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK)
980 ) { 980 ) {
981 scan_mask ^= PSSCAN_TASKS; 981 scan_mask ^= PSSCAN_TASKS;
982# if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE
982 free(prev_hist); 983 free(prev_hist);
983 prev_hist = NULL; 984 prev_hist = NULL;
984 prev_hist_count = 0; 985 prev_hist_count = 0;
986# endif
985 continue; 987 continue;
986 } 988 }
987# endif 989# endif