From f821e6882b582b20fed8ec6106ad167dd680d9bf Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Mon, 19 Feb 2018 18:56:03 +0100 Subject: map_t, set_t: unify memory allocation to mm_* We use the knot style everywhere else; this was very similar and yet different, so really annoying to me. In the long term we might better migrate to qp-tries from knot, but the API differs, so it's delayed... --- daemon/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/network.c') diff --git a/daemon/network.c b/daemon/network.c index c3d26af1..b3564567 100644 --- a/daemon/network.c +++ b/daemon/network.c @@ -50,8 +50,8 @@ void network_init(struct network *net, uv_loop_t *loop) { if (net != NULL) { net->loop = loop; - net->endpoints = map_make(); - net->tls_client_params = map_make(); + net->endpoints = map_make(NULL); + net->tls_client_params = map_make(NULL); } } -- cgit v1.2.3