From ad4999488eadac3a10de99caf50b732af8b771b9 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 22 Aug 2014 17:47:51 +0200 Subject: Remove VECTOR_ALLOC It is done automatically now if the VECTOR is zeroed before. --- src/fastd.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index 9be4290..589a293 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -533,10 +533,6 @@ static inline void init(int argc, char *argv[]) { ctx.next_maintenance = fastd_in_seconds(MAINTENANCE_INTERVAL); ctx.unknown_handshakes[0].timeout = ctx.now; - VECTOR_ALLOC(ctx.eth_addrs, 0); - VECTOR_ALLOC(ctx.peers, 0); - VECTOR_ALLOC(ctx.async_pids, 0); - #ifdef WITH_DYNAMIC_PEERS fastd_sem_init(&ctx.verify_limit, VERIFY_LIMIT); #endif -- cgit v1.2.3