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 /util-linux/mdev.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 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 27b35572d..c56741b08 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -173,6 +173,8 @@ struct globals { | |||
173 | char *subsystem; | 173 | char *subsystem; |
174 | } FIX_ALIASING; | 174 | } FIX_ALIASING; |
175 | #define G (*(struct globals*)&bb_common_bufsiz1) | 175 | #define G (*(struct globals*)&bb_common_bufsiz1) |
176 | #define INIT_G() do { } while (0) | ||
177 | |||
176 | 178 | ||
177 | /* Prevent infinite loops in /sys symlinks */ | 179 | /* Prevent infinite loops in /sys symlinks */ |
178 | #define MAX_SYSFS_DEPTH 3 | 180 | #define MAX_SYSFS_DEPTH 3 |
@@ -180,6 +182,7 @@ struct globals { | |||
180 | /* We use additional 64+ bytes in make_device() */ | 182 | /* We use additional 64+ bytes in make_device() */ |
181 | #define SCRATCH_SIZE 80 | 183 | #define SCRATCH_SIZE 80 |
182 | 184 | ||
185 | |||
183 | /* Builds an alias path. | 186 | /* Builds an alias path. |
184 | * This function potentionally reallocates the alias parameter. | 187 | * This function potentionally reallocates the alias parameter. |
185 | * Only used for ENABLE_FEATURE_MDEV_RENAME | 188 | * Only used for ENABLE_FEATURE_MDEV_RENAME |
@@ -613,6 +616,8 @@ int mdev_main(int argc UNUSED_PARAM, char **argv) | |||
613 | { | 616 | { |
614 | RESERVE_CONFIG_BUFFER(temp, PATH_MAX + SCRATCH_SIZE); | 617 | RESERVE_CONFIG_BUFFER(temp, PATH_MAX + SCRATCH_SIZE); |
615 | 618 | ||
619 | INIT_G(); | ||
620 | |||
616 | /* We can be called as hotplug helper */ | 621 | /* We can be called as hotplug helper */ |
617 | /* Kernel cannot provide suitable stdio fds for us, do it ourself */ | 622 | /* Kernel cannot provide suitable stdio fds for us, do it ourself */ |
618 | bb_sanitize_stdio(); | 623 | bb_sanitize_stdio(); |