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/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/poll.c') diff --git a/src/poll.c b/src/poll.c index a0b41ba..3f94379 100644 --- a/src/poll.c +++ b/src/poll.c @@ -180,7 +180,7 @@ void fastd_poll_handle(void) { #else void fastd_poll_init(void) { - VECTOR_ALLOC(ctx.pollfds, 2 + ctx.n_socks); + VECTOR_RESIZE(ctx.pollfds, 2 + ctx.n_socks); VECTOR_INDEX(ctx.pollfds, 0) = (struct pollfd) { .fd = -1, -- cgit v1.2.3