mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 14:12:44 +02:00
util/nvmutil: add assert for off_t
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -54,6 +54,13 @@ typedef char static_assert_uint8_is_1[(sizeof(uint8_t) == 1) ? 1 : -1];
|
|||||||
typedef char static_assert_uint16_is_2[(sizeof(uint16_t) == 2) ? 1 : -1];
|
typedef char static_assert_uint16_is_2[(sizeof(uint16_t) == 2) ? 1 : -1];
|
||||||
typedef char static_assert_uint32_is_4[(sizeof(uint32_t) == 4) ? 1 : -1];
|
typedef char static_assert_uint32_is_4[(sizeof(uint32_t) == 4) ? 1 : -1];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We set _FILE_OFFSET_BITS 64, but we only handle
|
||||||
|
* files that are 128KB in size at a maximum, so we
|
||||||
|
* realistically only need 32-bit at a minimum.
|
||||||
|
*/
|
||||||
|
typedef char static_assert_off_t_is_64[(sizeof(off_t) >= 4) ? 1 : -1];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The BSD versions that could realistically build
|
* The BSD versions that could realistically build
|
||||||
* nvmutil almost certainly have arc4random (first
|
* nvmutil almost certainly have arc4random (first
|
||||||
|
|||||||
Reference in New Issue
Block a user