diff --git a/src/unix/freebsd.c b/src/unix/freebsd.c index dcae244b..d59e3773 100644 --- a/src/unix/freebsd.c +++ b/src/unix/freebsd.c @@ -298,7 +298,7 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { for (i = 0; i < numcpus; i++) { cpu_info = &(*cpu_infos)[i]; - + cpu_info->cpu_times.user = (uint64_t)(cp_times[CP_USER+cur]) * multiplier; cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; cpu_info->cpu_times.sys = (uint64_t)(cp_times[CP_SYS+cur]) * multiplier; diff --git a/src/unix/openbsd.c b/src/unix/openbsd.c index f052d80c..75ba9216 100644 --- a/src/unix/openbsd.c +++ b/src/unix/openbsd.c @@ -267,7 +267,7 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { } cpu_info = &(*cpu_infos)[i]; - + cpu_info->cpu_times.user = (uint64_t)(info[CP_USER]) * multiplier; cpu_info->cpu_times.nice = (uint64_t)(info[CP_NICE]) * multiplier; cpu_info->cpu_times.sys = (uint64_t)(info[CP_SYS]) * multiplier; diff --git a/src/win/core.c b/src/win/core.c index f749ba91..540fb5fa 100644 --- a/src/win/core.c +++ b/src/win/core.c @@ -53,15 +53,15 @@ __declspec( thread ) int uv__crt_assert_enabled = TRUE; static int uv__crt_dbg_report_handler(int report_type, char *message, int *ret_val) { if (uv__crt_assert_enabled || report_type != _CRT_ASSERT) return FALSE; - + if (ret_val) { /* Set ret_val to 0 to continue with normal execution. */ /* Set ret_val to 1 to trigger a breakpoint. */ - if(IsDebuggerPresent()) - *ret_val = 1; + if(IsDebuggerPresent()) + *ret_val = 1; else - *ret_val = 0; + *ret_val = 0; } /* Don't call _CrtDbgReport. */ diff --git a/src/win/fs.c b/src/win/fs.c index 273ec39b..f31c0a29 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -553,7 +553,7 @@ void fs__read(uv_fs_t* req) { VERIFY_FD(fd, req); handle = uv__get_osfhandle(fd); - + if (handle == INVALID_HANDLE_VALUE) { SET_REQ_WIN32_ERROR(req, ERROR_INVALID_HANDLE); return; diff --git a/src/win/handle-inl.h b/src/win/handle-inl.h index 5776eb7f..8d0334cc 100644 --- a/src/win/handle-inl.h +++ b/src/win/handle-inl.h @@ -168,7 +168,7 @@ INLINE static HANDLE uv__get_osfhandle(int fd) /* But it also correctly checks the FD and returns INVALID_HANDLE_VALUE */ /* for invalid FDs in release builds (or if you let the assert continue). */ /* So this wrapper function disables asserts when calling _get_osfhandle. */ - + HANDLE handle; UV_BEGIN_DISABLE_CRT_ASSERT(); handle = (HANDLE) _get_osfhandle(fd); diff --git a/src/win/internal.h b/src/win/internal.h index f910c4ff..83c4a668 100644 --- a/src/win/internal.h +++ b/src/win/internal.h @@ -43,7 +43,7 @@ extern __declspec( thread ) int uv__crt_assert_enabled; { \ int uv__saved_crt_assert_enabled = uv__crt_assert_enabled; \ uv__crt_assert_enabled = FALSE; - + #define UV_END_DISABLE_CRT_ASSERT() \ uv__crt_assert_enabled = uv__saved_crt_assert_enabled; \ diff --git a/src/win/process.c b/src/win/process.c index eb4cc4e2..7a85858c 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -964,7 +964,7 @@ int uv_spawn(uv_loop_t* loop, /* Spawn succeeded */ /* Beyond this point, failure is reported asynchronously. */ - + process->process_handle = info.hProcess; process->pid = info.dwProcessId; @@ -1010,8 +1010,8 @@ int uv_spawn(uv_loop_t* loop, CloseHandle(info.hThread); - assert(!err); - + assert(!err); + /* Make the handle active. It will remain active until the exit callback */ /* iis made or the handle is closed, whichever happens first. */ uv__handle_start(process); diff --git a/src/win/tcp.c b/src/win/tcp.c index b7df3e40..ccd7a11e 100644 --- a/src/win/tcp.c +++ b/src/win/tcp.c @@ -244,7 +244,7 @@ static int uv_tcp_try_bind(uv_tcp_t* handle, if (handle->socket == INVALID_SOCKET) { SOCKET sock; - + /* Cannot set IPv6-only mode on non-IPv6 socket. */ if ((flags & UV_TCP_IPV6ONLY) && addr->sa_family != AF_INET6) return ERROR_INVALID_PARAMETER;