src/luks.c: improve code readability

This commit is contained in:
Christophe Grenier 2020-11-27 18:51:45 +01:00
parent 003dc8d883
commit cab9ca6645

View file

@ -38,11 +38,12 @@
static void set_LUKS_info(const struct luks_phdr *sb, partition_t *partition)
{
const unsigned int version=be16(sb->version);
partition->upart_type=UP_LUKS;
if(partition->part_size > 0)
sprintf(partition->info,"LUKS %u", be16(sb->version));
sprintf(partition->info,"LUKS %u", version);
else
sprintf(partition->info,"LUKS %u (Data size unknown)", be16(sb->version));
sprintf(partition->info,"LUKS %u (Data size unknown)", version);
}
static int test_LUKS(const disk_t *disk_car, const struct luks_phdr *sb, const partition_t *partition, const int dump_ind)