diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-21 01:59:15 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-21 01:59:15 +0200 |
commit | 16714245f9a16ce3725aab079aea7b0d28c6b32f (patch) | |
tree | 41edbcd1c279b2baae2d5e5751639076e0a3bfad /coreutils/du.c | |
parent | 5c6ba6c56f9653488e1d805e727bb06c39ed23fa (diff) | |
download | busybox-w32-16714245f9a16ce3725aab079aea7b0d28c6b32f.tar.gz busybox-w32-16714245f9a16ce3725aab079aea7b0d28c6b32f.tar.bz2 busybox-w32-16714245f9a16ce3725aab079aea7b0d28c6b32f.zip |
add INIT_G()'s. No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/du.c')
-rw-r--r-- | coreutils/du.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index b8bbe3d9e..34a549f02 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -88,6 +88,7 @@ struct globals { | |||
88 | dev_t dir_dev; | 88 | dev_t dir_dev; |
89 | } FIX_ALIASING; | 89 | } FIX_ALIASING; |
90 | #define G (*(struct globals*)&bb_common_bufsiz1) | 90 | #define G (*(struct globals*)&bb_common_bufsiz1) |
91 | #define INIT_G() do { } while (0) | ||
91 | 92 | ||
92 | 93 | ||
93 | static void print(unsigned long size, const char *filename) | 94 | static void print(unsigned long size, const char *filename) |
@@ -193,6 +194,8 @@ int du_main(int argc UNUSED_PARAM, char **argv) | |||
193 | int slink_depth_save; | 194 | int slink_depth_save; |
194 | unsigned opt; | 195 | unsigned opt; |
195 | 196 | ||
197 | INIT_G(); | ||
198 | |||
196 | #if ENABLE_FEATURE_HUMAN_READABLE | 199 | #if ENABLE_FEATURE_HUMAN_READABLE |
197 | IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(G.disp_hr = 1024;) | 200 | IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(G.disp_hr = 1024;) |
198 | IF_NOT_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(G.disp_hr = 512;) | 201 | IF_NOT_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(G.disp_hr = 512;) |