[git commit] swaponoff: fix compile-time warning
Denys Vlasenko
vda.linux at googlemail.com
Fri Dec 18 18:02:31 UTC 2015
commit: http://git.busybox.net/busybox/commit/?id=6c634f7968032ab2b8b7daf528990ac15809f7eb
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
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 at googlemail.com>
---
util-linux/swaponoff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 7e548a4..c29dd30 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -92,7 +92,7 @@ enum {
#define OPT_IFEXISTS (option_mask32 & OPT_e)
#define OPT_PRIO (option_mask32 & OPT_p)
-static int swap_enable_disable(const char *device)
+static int swap_enable_disable(char *device)
{
int err = 0;
int quiet = 0;
More information about the busybox-cvs
mailing list