From 55d044810ca32ae24499d2c6aee6084d7e31d576 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 1 Jun 2019 15:11:48 -0700 Subject: 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 --- tests/client-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/client-test.c') diff --git a/tests/client-test.c b/tests/client-test.c index 2e332f8..960cfa9 100644 --- a/tests/client-test.c +++ b/tests/client-test.c @@ -47,7 +47,7 @@ static void client_destroy_notify(struct wl_listener *l, void *data) { struct client_destroy_listener *listener = - container_of(l, struct client_destroy_listener, listener); + wl_container_of(l, listener, listener); listener->done = 1; } -- cgit v1.2.3-70-g09d2