diff options
author | Sverker Eriksson <[email protected]> | 2014-12-16 15:22:07 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-12-16 15:22:07 +0100 |
commit | c4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c (patch) | |
tree | e11aab77ae5383ae16f99cff9003208f32ceb15f /erts/emulator/drivers/common/inet_drv.c | |
parent | be779dbb921e2f99d1d6f626d32e34053a0635d9 (diff) | |
parent | b3e52c026ce4920e1a4e36ef98e5de94666e91ef (diff) | |
download | otp-c4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c.tar.gz otp-c4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c.tar.bz2 otp-c4228fb7cb3bd651dd44f8dfd9a4f91f41d5cc2c.zip |
Merge branch 'sverk/ct-assert'
* sverk/ct-assert:
erts: Add compile time assert ERTS_CT_ASSERT
Diffstat (limited to 'erts/emulator/drivers/common/inet_drv.c')
-rw-r--r-- | erts/emulator/drivers/common/inet_drv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index db8a251fdd..c8b69b0a94 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -3948,9 +3948,9 @@ static int inet_init() if (0 != erl_drv_tsd_key_create("inet_buffer_stack_key", &buffer_stack_key)) goto error; - ASSERT(sizeof(struct in_addr) == 4); + ERTS_CT_ASSERT(sizeof(struct in_addr) == 4); # if defined(HAVE_IN6) && defined(AF_INET6) - ASSERT(sizeof(struct in6_addr) == 16); + ERTS_CT_ASSERT(sizeof(struct in6_addr) == 16); # endif INIT_ATOM(ok); @@ -3996,7 +3996,7 @@ static int inet_init() #ifdef HAVE_SCTP /* Check the size of SCTP AssocID -- currently both this driver and the Erlang part require 32 bit: */ - ASSERT(sizeof(sctp_assoc_t)==ASSOC_ID_LEN); + ERTS_CT_ASSERT(sizeof(sctp_assoc_t)==ASSOC_ID_LEN); # if defined(HAVE_SCTP_BINDX) p_sctp_bindx = sctp_bindx; # if defined(HAVE_SCTP_PEELOFF) |