From c6f153d8f9ad6c961c8dd8e620dc2e8fcb20e7bc Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 15 Oct 2018 00:23:53 +1000 Subject: Event loop: Fix memmove and remove extraneous declaration --- common/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/loop.c') diff --git a/common/loop.c b/common/loop.c index 54b034d9..1b174967 100644 --- a/common/loop.c +++ b/common/loop.c @@ -159,7 +159,7 @@ bool loop_remove_fd(struct loop *loop, int fd) { loop->fd_length--; memmove(&loop->fds[i], &loop->fds[i + 1], - sizeof(void*) * (loop->fd_length - i)); + sizeof(struct pollfd) * (loop->fd_length - i)); return true; } -- cgit v1.2.3-54-g00ecf