aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-01-16 12:23:02 +0000
committerMichael Brown <mcb30@ipxe.org>2024-01-16 13:35:08 +0000
commit6d29415c89d607b988381bc367c9c521694fa728 (patch)
treeab4a300dc7856a6fcbeb8b6f4db002e70d2f4e86 /src/net
parent6ca597eee9f95b846a3c2dc1231e63cfc02272c1 (diff)
downloadipxe-6d29415c89d607b988381bc367c9c521694fa728.zip
ipxe-6d29415c89d607b988381bc367c9c521694fa728.tar.gz
ipxe-6d29415c89d607b988381bc367c9c521694fa728.tar.bz2
[libc] Make static_assert() available via assert.h
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')
-rw-r--r--src/net/aoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/aoe.c b/src/net/aoe.c
index e785e89..dba4f51 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 ) );