]> git.meshlink.io Git - meshlink/commit
Add assert() calls to the library.
authorGuus Sliepen <guus@meshlink.io>
Sat, 5 Oct 2019 12:15:35 +0000 (14:15 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sat, 5 Oct 2019 12:15:35 +0000 (14:15 +0200)
commit9cde0d32cf209388cc59b06b7dcb0c3432f97da5
treea2ca69f996bdc6bfe17bdc31d05a65aaa822b4c8
parent9e8e77dba3462c4a7f7e758ade4d16bc669fc4a7
Add assert() calls to the library.

To aid in debugging, start using assert() to ensure preconditions hold.
At the moment, we assume that NULL-pointer dereferences will always cause
segfaults, so we don't add assert(ptr) statements in those cases, but that
might change in the future.
25 files changed:
src/buffer.c
src/conf.c
src/connection.c
src/crypto.c
src/devtools.c
src/discovery.c
src/edge.c
src/event.c
src/have.h
src/list.c
src/logger.c
src/meta.c
src/net.c
src/net_packet.c
src/net_socket.c
src/prf.c
src/protocol.c
src/protocol_auth.c
src/protocol_edge.c
src/protocol_key.c
src/protocol_misc.c
src/route.c
src/splay_tree.c
src/sptps.c
src/submesh.c