Event loop: Fix memmove and remove extraneous declaration

This commit is contained in:
Ryan Dwyer 2018-10-15 00:23:53 +10:00
parent 893f61d03a
commit c6f153d8f9
2 changed files with 1 additions and 2 deletions

View file

@ -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;
}