commit c6f153d8f9ad6c961c8dd8e620dc2e8fcb20e7bc
parent 893f61d03a18b8e5dcb3893b2e3d164690a1f433
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Mon, 15 Oct 2018 00:23:53 +1000
Event loop: Fix memmove and remove extraneous declaration
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git 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;
}
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h
@@ -9,7 +9,6 @@ struct swaybar_config;
struct swaybar_output;
struct swaybar_workspace;
struct loop;
-struct loop_event;
struct swaybar_pointer {
struct wl_pointer *pointer;