diff options
author | Sverker Eriksson <[email protected]> | 2013-08-27 17:23:09 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-09-30 17:34:10 +0200 |
commit | 156b011958a3b80e507039ddc916db039874ada1 (patch) | |
tree | 1bebd9b4ba948a5fa14d091275f9f334559f35d8 /erts/emulator/drivers/common/inet_drv.c | |
parent | e0ecc86e35475b434efa6cccba44074ca1040b7a (diff) | |
download | otp-156b011958a3b80e507039ddc916db039874ada1.tar.gz otp-156b011958a3b80e507039ddc916db039874ada1.tar.bz2 otp-156b011958a3b80e507039ddc916db039874ada1.zip |
erts: Refactor the ASSERT macro
Introduce unconditional ERTS_ASSERT
and use that for both ASSERT and ASSERT_EXPR.
Diffstat (limited to 'erts/emulator/drivers/common/inet_drv.c')
-rw-r--r-- | erts/emulator/drivers/common/inet_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index 60db50e80a..12f45245b5 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -4433,7 +4433,7 @@ static ErlDrvSSizeT inet_ctl_getiflist(inet_descriptor* desc, case AF_INET6: #endif case AF_INET: - ASSERT(sp+IFNAMSIZ+1 < sbuf+ifc.ifc_len+1) + ASSERT(sp+IFNAMSIZ+1 < sbuf+ifc.ifc_len+1); strncpy(sp, ifrp->ifr_name, IFNAMSIZ); sp[IFNAMSIZ] = '\0'; sp += strlen(sp), ++sp; |