diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-01-16 12:23:02 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-01-16 13:35:08 +0000 |
commit | 6d29415c89d607b988381bc367c9c521694fa728 (patch) | |
tree | ab4a300dc7856a6fcbeb8b6f4db002e70d2f4e86 /src/net/aoe.c | |
parent | 6ca597eee9f95b846a3c2dc1231e63cfc02272c1 (diff) | |
download | ipxe-6d29415c89d607b988381bc367c9c521694fa728.tar.gz |
[libc] Make static_assert() available via assert.hassert
Expose static_assert() via assert.h and migrate link-time assertions
to build-time assertions where possible.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/aoe.c')
-rw-r--r-- | src/net/aoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/aoe.c b/src/net/aoe.c index e785e8979..dba4f51b5 100644 --- a/src/net/aoe.c +++ b/src/net/aoe.c @@ -374,7 +374,7 @@ static void aoecmd_ata_cmd ( struct aoe_command *aoecmd, struct aoeata *aoeata = &aoehdr->payload[0].ata; /* Sanity check */ - linker_assert ( AOE_FL_DEV_HEAD == ATA_DEV_SLAVE, __fix_ata_h__ ); + static_assert ( AOE_FL_DEV_HEAD == ATA_DEV_SLAVE ); assert ( len == ( sizeof ( *aoehdr ) + sizeof ( *aoeata ) + command->data_out_len ) ); |