diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/ps.c | 2 | ||||
-rw-r--r-- | procps/top.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/procps/ps.c b/procps/ps.c index 0b674ffb4..91ebd6819 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -49,7 +49,7 @@ struct globals { | |||
49 | unsigned long long seconds_since_boot; | 49 | unsigned long long seconds_since_boot; |
50 | #endif | 50 | #endif |
51 | char default_o[sizeof(DEFAULT_O_STR)]; | 51 | char default_o[sizeof(DEFAULT_O_STR)]; |
52 | }; | 52 | } FIX_ALIASING; |
53 | #define G (*(struct globals*)&bb_common_bufsiz1) | 53 | #define G (*(struct globals*)&bb_common_bufsiz1) |
54 | #define out (G.out ) | 54 | #define out (G.out ) |
55 | #define out_cnt (G.out_cnt ) | 55 | #define out_cnt (G.out_cnt ) |
diff --git a/procps/top.c b/procps/top.c index f514df78a..d76d9af78 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -100,10 +100,8 @@ struct globals { | |||
100 | int num_cpus; | 100 | int num_cpus; |
101 | #endif | 101 | #endif |
102 | char line_buf[80]; | 102 | char line_buf[80]; |
103 | }; | 103 | }; //FIX_ALIASING; - large code growth |
104 | |||
105 | enum { LINE_BUF_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line_buf) }; | 104 | enum { LINE_BUF_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line_buf) }; |
106 | |||
107 | #define G (*(struct globals*)&bb_common_bufsiz1) | 105 | #define G (*(struct globals*)&bb_common_bufsiz1) |
108 | #define INIT_G() do { \ | 106 | #define INIT_G() do { \ |
109 | struct G_sizecheck { \ | 107 | struct G_sizecheck { \ |