diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-15 00:23:53 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-15 00:26:27 +1000 |
commit | c6f153d8f9ad6c961c8dd8e620dc2e8fcb20e7bc (patch) | |
tree | b3ad36486ef4cf25c29a2ae0f40f986565e52bfb /common | |
parent | 893f61d03a18b8e5dcb3893b2e3d164690a1f433 (diff) |
Event loop: Fix memmove and remove extraneous declaration
Diffstat (limited to 'common')
-rw-r--r-- | common/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |