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💯 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>
This commit is contained in:
Denys Vlasenko 2015-12-18 19:02:31 +01:00
parent 2c0d3f5fd0
commit 6c634f7968

View File

@ -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;