win,test: fix a few typos

PR-URL: https://github.com/libuv/libuv/pull/3375
This commit is contained in:
AJ Heller 2021-11-30 20:22:31 -08:00 committed by GitHub
parent c7843ecfbc
commit 4075298df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1650,7 +1650,7 @@ int uv_socketpair(int type, int protocol, uv_os_sock_t fds[2], int flags0, int f
err = WSAGetLastError(); err = WSAGetLastError();
if (err == ERROR_IO_PENDING) { if (err == ERROR_IO_PENDING) {
/* Result should complete immediately, since we already called connect, /* Result should complete immediately, since we already called connect,
* but emperically, we sometimes have to poll the kernel a couple times * but empirically, we sometimes have to poll the kernel a couple times
* until it notices that. */ * until it notices that. */
while (!WSAGetOverlappedResult(client1, &overlap, &bytes, FALSE, &flags)) { while (!WSAGetOverlappedResult(client1, &overlap, &bytes, FALSE, &flags)) {
err = WSAGetLastError(); err = WSAGetLastError();

View File

@ -111,7 +111,7 @@ static int is_supported_system(void) {
if (cnt != 3) { if (cnt != 3) {
return 0; return 0;
} }
/* relase >= 10.0.16299 */ /* release >= 10.0.16299 */
for (cnt = 0; cnt < 3; ++cnt) { for (cnt = 0; cnt < 3; ++cnt) {
if (semver[cnt] > min_semver[cnt]) if (semver[cnt] > min_semver[cnt])
return 1; return 1;

View File

@ -124,7 +124,7 @@ TEST_IMPL(udp_connect) {
buf = uv_buf_init("EXIT", 4); buf = uv_buf_init("EXIT", 4);
/* connect() to INADDR_ANY fails on Windows wih WSAEADDRNOTAVAIL */ /* connect() to INADDR_ANY fails on Windows with WSAEADDRNOTAVAIL */
ASSERT_EQ(0, uv_ip4_addr("0.0.0.0", TEST_PORT, &tmp_addr)); ASSERT_EQ(0, uv_ip4_addr("0.0.0.0", TEST_PORT, &tmp_addr));
r = uv_udp_connect(&client, (const struct sockaddr*) &tmp_addr); r = uv_udp_connect(&client, (const struct sockaddr*) &tmp_addr);
#ifdef _WIN32 #ifdef _WIN32