aboutsummaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-01-05 13:28:51 +0000
committerRon Yorston <rmy@pobox.com>2014-01-05 13:28:51 +0000
commit5e8fad1617439c6dacfa04e677f4664b0377e340 (patch)
tree3d9dfd9898f6fcdb46db681fe18584d08592e1ee /util-linux/swaponoff.c
parentd9d53743c9407bb5032f4cf1da1582feebdf7c2e (diff)
downloadbusybox-w32-5e8fad1617439c6dacfa04e677f4664b0377e340.tar.gz
busybox-w32-5e8fad1617439c6dacfa04e677f4664b0377e340.tar.bz2
busybox-w32-5e8fad1617439c6dacfa04e677f4664b0377e340.zip
Use the preprocessor to fake st_blocks
Diffstat (limited to '')
-rw-r--r--util-linux/swaponoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 3f223343e..94565f855 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -60,7 +60,7 @@ static int swap_enable_disable(char *device)
60#if ENABLE_DESKTOP 60#if ENABLE_DESKTOP
61 /* test for holes */ 61 /* test for holes */
62 if (S_ISREG(st.st_mode)) 62 if (S_ISREG(st.st_mode))
63 if (st.st_blocks * (off_t)512 < st.st_size) 63 if ((st.st_blocks) * (off_t)512 < st.st_size)
64 bb_error_msg("warning: swap file has holes"); 64 bb_error_msg("warning: swap file has holes");
65#endif 65#endif
66 66