diff options
-rw-r--r-- | util-linux/swaponoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 40f971d35..3f223343e 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -96,8 +96,9 @@ static int do_em_all(void) | |||
96 | || hasmntopt(m, MNTOPT_NOAUTO) == NULL | 96 | || hasmntopt(m, MNTOPT_NOAUTO) == NULL |
97 | ) { | 97 | ) { |
98 | #if ENABLE_FEATURE_SWAPON_PRI | 98 | #if ENABLE_FEATURE_SWAPON_PRI |
99 | char *p; | ||
99 | g_flags = 0; /* each swap space might have different flags */ | 100 | g_flags = 0; /* each swap space might have different flags */ |
100 | char *p = hasmntopt(m,"pri"); | 101 | p = hasmntopt(m, "pri"); |
101 | if (p) { | 102 | if (p) { |
102 | /* Max allowed 32767 (==SWAP_FLAG_PRIO_MASK) */ | 103 | /* Max allowed 32767 (==SWAP_FLAG_PRIO_MASK) */ |
103 | unsigned int swap_prio = MIN(bb_strtou(p + 4 , NULL, 10), SWAP_FLAG_PRIO_MASK); | 104 | unsigned int swap_prio = MIN(bb_strtou(p + 4 , NULL, 10), SWAP_FLAG_PRIO_MASK); |