summaryrefslogtreecommitdiff
path: root/procps/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/top.c')
-rw-r--r--procps/top.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c
index 7f1c83f..0da742f 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -82,10 +82,12 @@ struct globals {
/* int hist_iterations; */
unsigned total_pcpu;
/* unsigned long total_vsz; */
- char line_buf[80];
#endif
+ char line_buf[80];
};
+
enum { LINE_BUF_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line_buf) };
+
#define G (*(struct globals*)&bb_common_bufsiz1)
#define INIT_G() \
do { \