libuv 1.42.0.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3650 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-07-27 22:08:18 +00:00
parent 5197eb91f7
commit da51e87774
183 changed files with 4013 additions and 1768 deletions

View File

@ -54,7 +54,7 @@ static void alloc_cb(uv_handle_t* handle,
/* Actually malloc to exercise free'ing the buffer later */
buf->base = malloc(buffer_size);
ASSERT(buf->base != NULL);
ASSERT_NOT_NULL(buf->base);
buf->len = buffer_size;
alloc_cb_called++;
}
@ -77,13 +77,13 @@ static void recv_cb(uv_udp_t* handle,
/* free and return if this is a mmsg free-only callback invocation */
if (flags & UV_UDP_MMSG_FREE) {
ASSERT_EQ(nread, 0);
ASSERT(addr == NULL);
ASSERT_NULL(addr);
free(rcvbuf->base);
return;
}
ASSERT_EQ(nread, 4);
ASSERT(addr != NULL);
ASSERT_NOT_NULL(addr);
ASSERT_MEM_EQ("PING", rcvbuf->base, nread);
recv_cb_called++;