From 9c3d692b3941a2a4171629fb52af2e1029c415e8 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 4 Jan 2021 21:36:04 -0500 Subject: [PATCH] test: fix 'incompatible pointer types' warnings Refs: https://github.com/libuv/libuv/pull/2686 PR-URL: https://github.com/libuv/libuv/pull/3088 Reviewed-By: Jameson Nash Reviewed-By: Santiago Gimeno --- test/test-poll-multiple-handles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-poll-multiple-handles.c b/test/test-poll-multiple-handles.c index 1b0f7629..fc2205dd 100644 --- a/test/test-poll-multiple-handles.c +++ b/test/test-poll-multiple-handles.c @@ -83,10 +83,10 @@ TEST_IMPL(poll_multiple_handles) { /* Closing an already stopped polling handle is safe in any case */ uv_close((uv_handle_t*) &first_poll_handle, close_cb); - uv_unref(&second_poll_handle); + uv_unref((uv_handle_t*) &second_poll_handle); ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); ASSERT(close_cb_called == 1); - uv_ref(&second_poll_handle); + uv_ref((uv_handle_t*) &second_poll_handle); ASSERT(uv_is_active((uv_handle_t*) &second_poll_handle)); uv_close((uv_handle_t*) &second_poll_handle, close_cb);