diff --git a/include/uv.h b/include/uv.h index 86e6f77e..51e70866 100644 --- a/include/uv.h +++ b/include/uv.h @@ -578,7 +578,7 @@ struct uv_getaddrinfo_s { }; -/* +/* * Asynchronous getaddrinfo(3). * * Return code 0 means that request is accepted and callback will be called diff --git a/src/win/tcp.c b/src/win/tcp.c index 548f6cb4..3967a685 100644 --- a/src/win/tcp.c +++ b/src/win/tcp.c @@ -281,7 +281,7 @@ static int uv_tcp_set_socket(uv_tcp_t* handle, SOCKET socket) { } if (pSetFileCompletionNotificationModes) { - if (!pSetFileCompletionNotificationModes((HANDLE)socket, FILE_SKIP_SET_EVENT_ON_HANDLE | + if (!pSetFileCompletionNotificationModes((HANDLE)socket, FILE_SKIP_SET_EVENT_ON_HANDLE | FILE_SKIP_COMPLETION_PORT_ON_SUCCESS)) { uv_set_sys_error(GetLastError()); return -1; @@ -492,7 +492,7 @@ static void uv_tcp_queue_read(uv_tcp_t* handle) { req = &handle->read_req; memset(&req->overlapped, 0, sizeof(req->overlapped)); - /* + /* * Preallocate a read buffer if the number of active streams is below * the threshold. */ @@ -531,7 +531,7 @@ static void uv_tcp_queue_read(uv_tcp_t* handle) { req->error = uv_new_sys_error(WSAGetLastError()); uv_insert_pending_req(req); handle->reqs_pending++; - } + } } diff --git a/src/win/winapi.c b/src/win/winapi.c index 5fe87278..739cb9c5 100644 --- a/src/win/winapi.c +++ b/src/win/winapi.c @@ -64,6 +64,6 @@ void uv_winapi_init() { kernel32_module, "GetQueuedCompletionStatusEx"); - pSetFileCompletionNotificationModes = (sSetFileCompletionNotificationModes) + pSetFileCompletionNotificationModes = (sSetFileCompletionNotificationModes) GetProcAddress(kernel32_module, "SetFileCompletionNotificationModes"); } diff --git a/test/benchmark-spawn.c b/test/benchmark-spawn.c index 21e43a77..0297c74f 100644 --- a/test/benchmark-spawn.c +++ b/test/benchmark-spawn.c @@ -127,7 +127,7 @@ static void spawn() { BENCHMARK_IMPL(spawn) { - int r; + int r; static int64_t start_time, end_time; uv_init();