mkswap: remove unused variable when compile without libblkid
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
0ee5fcd2e8
commit
3773bb151a
|
@ -360,10 +360,9 @@ static void wipe_device(struct mkswap_control *ctl)
|
|||
int zap = 1;
|
||||
#ifdef HAVE_LIBBLKID
|
||||
blkid_probe pr = NULL;
|
||||
const char *v = NULL;
|
||||
#endif
|
||||
if (!ctl->force) {
|
||||
const char *v = NULL;
|
||||
|
||||
if (lseek(ctl->fd, 0, SEEK_SET) != 0)
|
||||
errx(EXIT_FAILURE, _("unable to rewind swap-device"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue