From 4e38e2a5bcaf8cc98b8848daa7faad8b100dca2d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 2 Mar 2020 11:14:44 +0100 Subject: [PATCH] unix: use socklen_t instead of size_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has been reported that it generates (otherwise harmless) `-Wshorten-64-to-32` compiler warnings when building for iOS. Fixes: https://github.com/libuv/libuv/issues/2714 PR-URL: https://github.com/libuv/libuv/pull/2716 Reviewed-By: Colin Ihrig Reviewed-By: Saúl Ibarra Corretgé --- src/unix/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/udp.c b/src/unix/udp.c index ed6b6c25..eb4b8f4c 100644 --- a/src/unix/udp.c +++ b/src/unix/udp.c @@ -1087,7 +1087,7 @@ static int uv__setsockopt(uv_udp_t* handle, int option4, int option6, const void* val, - size_t size) { + socklen_t size) { int r; if (handle->flags & UV_HANDLE_IPV6)