summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkswap.c
diff options
context:
space:
mode:
authorKarel Zak2012-01-17 15:35:10 +0100
committerKarel Zak2012-01-17 15:35:10 +0100
commit9206b23863b83602af65df6e3b36c16ef82777c0 (patch)
tree4afc08c02d02c76526bb1ca8e0abb4cb52e9bd8f /disk-utils/mkswap.c
parentmount: avoid canonicalizing pseudofs paths (diff)
downloadkernel-qcow2-util-linux-9206b23863b83602af65df6e3b36c16ef82777c0.tar.gz
kernel-qcow2-util-linux-9206b23863b83602af65df6e3b36c16ef82777c0.tar.xz
kernel-qcow2-util-linux-9206b23863b83602af65df6e3b36c16ef82777c0.zip
test: refresh build-sys tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/mkswap.c')
-rw-r--r--disk-utils/mkswap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c
index 5c2869772..ae5e58937 100644
--- a/disk-utils/mkswap.c
+++ b/disk-utils/mkswap.c
@@ -389,8 +389,9 @@ wipe_device(int fd, const char *devname, int force, int is_blkdev)
char *type = NULL;
int whole = 0;
int zap = 1;
+#ifdef HAVE_LIBBLKID
blkid_probe pr = NULL;
-
+#endif
if (!force) {
if (lseek(fd, 0, SEEK_SET) != 0)
errx(EXIT_FAILURE, _("unable to rewind swap-device"));