aboutsummaryrefslogtreecommitdiffstats
path: root/src/event-loop.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-01 15:11:48 -0700
committerSimon Ser <contact@emersion.fr>2019-06-05 09:58:14 +0000
commit55d044810ca32ae24499d2c6aee6084d7e31d576 (patch)
tree8a8ca16c2a45078ba8c0c2635b0a86547cd7889f /src/event-loop.c
parentAdd a missing -pthread to fix compile with slibtool. (diff)
downloadwayland-55d044810ca32ae24499d2c6aee6084d7e31d576.tar
wayland-55d044810ca32ae24499d2c6aee6084d7e31d576.tar.gz
wayland-55d044810ca32ae24499d2c6aee6084d7e31d576.tar.bz2
wayland-55d044810ca32ae24499d2c6aee6084d7e31d576.tar.lz
wayland-55d044810ca32ae24499d2c6aee6084d7e31d576.tar.xz
wayland-55d044810ca32ae24499d2c6aee6084d7e31d576.tar.zst
wayland-55d044810ca32ae24499d2c6aee6084d7e31d576.zip
Use wl_container_of internally
Rather than have two versions of the macro with slightly different interfaces, just use wl_container_of internally. This also removes use of statement expressions, a GNU C extension. Signed-off-by: Michael Forney <mforney@mforney.org>
Diffstat (limited to 'src/event-loop.c')
-rw-r--r--src/event-loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event-loop.c b/src/event-loop.c
index 54c8474..017ab27 100644
--- a/src/event-loop.c
+++ b/src/event-loop.c
@@ -595,8 +595,8 @@ wl_event_loop_dispatch_idle(struct wl_event_loop *loop)
struct wl_event_source_idle *source;
while (!wl_list_empty(&loop->idle_list)) {
- source = container_of(loop->idle_list.next,
- struct wl_event_source_idle, base.link);
+ source = wl_container_of(loop->idle_list.next,
+ source, base.link);
source->func(source->base.data);
wl_event_source_remove(&source->base);
}