diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-17 02:53:05 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-17 02:53:05 +0400 |
commit | 557613656317ccf401669dcc6681155bf2930c9f (patch) | |
tree | 4c1b64b064a304cf4aca3bc9696c6a962d677409 /procps | |
parent | 23c8128916d9a40b473557a11d431549a94604f1 (diff) |
fixes revealed by randomconfig run
Diffstat (limited to 'procps')
-rw-r--r-- | procps/top.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/procps/top.c b/procps/top.c index 7f1c83fc1..0da742f0b 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 { \ |