mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 03:11:27 +00:00
Event loop: Fix memmove and remove extraneous declaration
This commit is contained in:
parent
893f61d03a
commit
c6f153d8f9
|
@ -159,7 +159,7 @@ bool loop_remove_fd(struct loop *loop, int fd) {
|
||||||
|
|
||||||
loop->fd_length--;
|
loop->fd_length--;
|
||||||
memmove(&loop->fds[i], &loop->fds[i + 1],
|
memmove(&loop->fds[i], &loop->fds[i + 1],
|
||||||
sizeof(void*) * (loop->fd_length - i));
|
sizeof(struct pollfd) * (loop->fd_length - i));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@ struct swaybar_config;
|
||||||
struct swaybar_output;
|
struct swaybar_output;
|
||||||
struct swaybar_workspace;
|
struct swaybar_workspace;
|
||||||
struct loop;
|
struct loop;
|
||||||
struct loop_event;
|
|
||||||
|
|
||||||
struct swaybar_pointer {
|
struct swaybar_pointer {
|
||||||
struct wl_pointer *pointer;
|
struct wl_pointer *pointer;
|
||||||
|
|
Loading…
Reference in a new issue