]> git.ipfire.org Git - thirdparty/grub.git/commit
cryptodisk: Add macro GRUB_TYPE_BITS() to replace some literals
authorGlenn Washburn <development@efficientek.com>
Tue, 8 Dec 2020 22:45:41 +0000 (16:45 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 12 Dec 2020 00:19:04 +0000 (01:19 +0100)
commit3e5f7f51123471d39a78024d5267f06f987df8ee
tree7c025bd7539b3f6be9efb4d04759bf80ed018d33
parent40abe8576a796a39fc6d4aa48da137fc7faf437c
cryptodisk: Add macro GRUB_TYPE_BITS() to replace some literals

The new macro GRUB_TYPE_BITS(type) returns the number of bits
allocated for type.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/cryptodisk.c
include/grub/types.h