aboutsummaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-09-21 01:59:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-09-21 01:59:15 +0200
commit16714245f9a16ce3725aab079aea7b0d28c6b32f (patch)
tree41edbcd1c279b2baae2d5e5751639076e0a3bfad /util-linux/swaponoff.c
parent5c6ba6c56f9653488e1d805e727bb06c39ed23fa (diff)
downloadbusybox-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/swaponoff.c')
-rw-r--r--util-linux/swaponoff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index e53e24c71..b3057b309 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -48,6 +48,7 @@ struct globals {
48#else 48#else
49#define g_flags 0 49#define g_flags 0
50#endif 50#endif
51#define INIT_G() do { } while (0)
51 52
52static int swap_enable_disable(char *device) 53static int swap_enable_disable(char *device)
53{ 54{
@@ -111,6 +112,8 @@ int swap_on_off_main(int argc UNUSED_PARAM, char **argv)
111{ 112{
112 int ret; 113 int ret;
113 114
115 INIT_G();
116
114#if !ENABLE_FEATURE_SWAPON_PRI 117#if !ENABLE_FEATURE_SWAPON_PRI
115 ret = getopt32(argv, "a"); 118 ret = getopt32(argv, "a");
116#else 119#else