diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-06 15:39:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-06 15:39:58 -0500 |
commit | e69a4ad6b321dbdb63236687ac8924c301c60f9d (patch) | |
tree | 6db308e3872e4ffb47fe1491880296d11249b788 /src/lib/net/address.c | |
parent | 1a6060fa4263d20d3c1ccf29163165126a413957 (diff) | |
download | tor-e69a4ad6b321dbdb63236687ac8924c301c60f9d.tar.gz tor-e69a4ad6b321dbdb63236687ac8924c301c60f9d.zip |
Add a user of CTASSERT().
Diffstat (limited to 'src/lib/net/address.c')
-rw-r--r-- | src/lib/net/address.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/net/address.c b/src/lib/net/address.c index c97a17037a..a351b9df28 100644 --- a/src/lib/net/address.c +++ b/src/lib/net/address.c @@ -40,6 +40,7 @@ #include "lib/net/address.h" #include "lib/net/socket.h" +#include "lib/cc/ctassert.h" #include "lib/container/smartlist.h" #include "lib/ctime/di_ops.h" #include "lib/log/log.h" @@ -98,6 +99,7 @@ #if AF_UNSPEC != 0 #error We rely on AF_UNSPEC being 0. Let us know about your platform, please! #endif +CTASSERT(AF_UNSPEC == 0); /** Convert the tor_addr_t in <b>a</b>, with port in <b>port</b>, into a * sockaddr object in *<b>sa_out</b> of object size <b>len</b>. If not enough |