]> git.ipfire.org Git - thirdparty/grub.git/commit
cryptodisk: Add macros GRUB_TYPE_U_MAX/MIN(type) to replace literals
authorGlenn Washburn <development@efficientek.com>
Tue, 8 Dec 2020 22:45:42 +0000 (16:45 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 12 Dec 2020 00:19:04 +0000 (01:19 +0100)
commitb34cb38795d6bb7f8546f1a16b671a900161f68e
treee005896387f955c14fe60aca93ce8b45f54b9c4b
parent3e5f7f51123471d39a78024d5267f06f987df8ee
cryptodisk: Add macros GRUB_TYPE_U_MAX/MIN(type) to replace literals

Add GRUB_TYPE_U_MAX/MIN(type) macros to get the max/min values for an
unsigned number with size of 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