mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Avoid compilation warning if configured with --disable-blkid.
This commit is contained in:
@@ -335,9 +335,9 @@ int blk_supported(void)
|
||||
|
||||
unsigned blk_get_block_size(struct blkid_handle *h)
|
||||
{
|
||||
const char *data;
|
||||
unsigned block_size = 0;
|
||||
#ifdef HAVE_BLKID
|
||||
const char *data;
|
||||
if (!blk_is_superblock(h) || !blkid_probe_has_value(h->pr, "BLOCK_SIZE") ||
|
||||
blkid_probe_lookup_value(h->pr, "BLOCK_SIZE", &data, NULL) ||
|
||||
sscanf(data, "%u", &block_size) != 1)
|
||||
|
||||
Reference in New Issue
Block a user