diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-12-18 19:02:31 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-12-18 19:02:31 +0100 |
commit | 6c634f7968032ab2b8b7daf528990ac15809f7eb (patch) | |
tree | 779be60a90eaadd6d064f370f8eac87943e36ae2 | |
parent | 2c0d3f5fd08ccc6963c402030efcbe8a2c028f2d (diff) | |
download | busybox-w32-6c634f7968032ab2b8b7daf528990ac15809f7eb.tar.gz busybox-w32-6c634f7968032ab2b8b7daf528990ac15809f7eb.tar.bz2 busybox-w32-6c634f7968032ab2b8b7daf528990ac15809f7eb.zip |
swaponoff: fix compile-time warning
CC util-linux/swaponoff.o
cc1: warnings being treated as errors
util-linux/swaponoff.c: In function 'swap_enable_disable':
util-linux/swaponoff.c:100: warning: passing argument 1 of 'resolve_mount_spec' from incompatible pointer type
make[1]: *** [util-linux/swaponoff.o] Error 1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/swaponoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 7e548a464..c29dd3071 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -92,7 +92,7 @@ enum { | |||
92 | #define OPT_IFEXISTS (option_mask32 & OPT_e) | 92 | #define OPT_IFEXISTS (option_mask32 & OPT_e) |
93 | #define OPT_PRIO (option_mask32 & OPT_p) | 93 | #define OPT_PRIO (option_mask32 & OPT_p) |
94 | 94 | ||
95 | static int swap_enable_disable(const char *device) | 95 | static int swap_enable_disable(char *device) |
96 | { | 96 | { |
97 | int err = 0; | 97 | int err = 0; |
98 | int quiet = 0; | 98 | int quiet = 0; |