aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/loop.c2
-rw-r--r--include/swaybar/bar.h1
2 files changed, 1 insertions, 2 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;
}
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h
index db2d3d62..58e2dee6 100644
--- 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;