summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon-common.h
diff options
context:
space:
mode:
authorSami Kerola2014-07-26 12:53:06 +0200
committerKarel Zak2014-07-28 12:28:05 +0200
commit25a365ef5a8291929351c40ccadd0d20b9cb1831 (patch)
tree7546fc7864ad79992eeaf3f5fe7bfa04b33630f0 /sys-utils/swapon-common.h
parentbuild-sys: add -Wimplicit-function-declaration to compiler warnings (diff)
downloadkernel-qcow2-util-linux-25a365ef5a8291929351c40ccadd0d20b9cb1831.tar.gz
kernel-qcow2-util-linux-25a365ef5a8291929351c40ccadd0d20b9cb1831.tar.xz
kernel-qcow2-util-linux-25a365ef5a8291929351c40ccadd0d20b9cb1831.zip
swaplabel: move swapon-common to include directory
This fixes the following compiler warning. disk-utils/swaplabel.c:175:2: warning: implicit declaration of function 'get_swap_prober' [-Wimplicit-function-declaration] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon-common.h')
-rw-r--r--sys-utils/swapon-common.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/sys-utils/swapon-common.h b/sys-utils/swapon-common.h
deleted file mode 100644
index da58e199d..000000000
--- a/sys-utils/swapon-common.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef UTIL_LINUX_SWAPON_COMMON_H
-#define UTIL_LINUX_SWAPON_COMMON_H
-
-#include <blkid.h>
-#include <libmount.h>
-
-extern struct libmnt_cache *mntcache;
-
-extern struct libmnt_table *get_fstab(void);
-extern struct libmnt_table *get_swaps(void);
-extern void free_tables(void);
-
-extern int match_swap(struct libmnt_fs *fs, void *data);
-extern int is_active_swap(const char *filename);
-
-extern int cannot_find(const char *special);
-
-extern void add_label(const char *label);
-extern const char *get_label(size_t i);
-extern size_t numof_labels(void);
-
-extern void add_uuid(const char *uuid);
-extern const char *get_uuid(size_t i);
-extern size_t numof_uuids(void);
-
-blkid_probe get_swap_prober(const char *devname);
-
-#endif /* UTIL_LINUX_SWAPON_COMMON_H */