diff options
author | Jameson Nash <vtjnash@gmail.com> | 2018-11-05 16:03:19 -0500 |
---|---|---|
committer | Jameson Nash <vtjnash@gmail.com> | 2018-11-29 11:21:44 -0500 |
commit | c5593b51dc98715f7f32a919301b5801ebf1a8ce (patch) | |
tree | 68083703aa316ca99eaf1ebd4e423ccf64dc9a57 /src/win/pipe.c | |
parent | f1981d74ba880f010bfde6c98647bbb426a6d126 (diff) | |
download | libuv-c5593b51dc98715f7f32a919301b5801ebf1a8ce.tar.gz libuv-c5593b51dc98715f7f32a919301b5801ebf1a8ce.zip |
warnings: fix code that emits compiler warnings
PR-URL: https://github.com/libuv/libuv/pull/2066
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/win/pipe.c')
-rw-r--r-- | src/win/pipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win/pipe.c b/src/win/pipe.c index 9a3cbc8a..e303cc8a 100644 --- a/src/win/pipe.c +++ b/src/win/pipe.c @@ -1541,7 +1541,7 @@ int uv__pipe_write_ipc(uv_loop_t* loop, frame_header.flags |= UV__IPC_FRAME_HAS_SOCKET_XFER; break; default: - assert(0); // Unreachable. + assert(0); /* Unreachable. */ } /* Add xfer info buffer. */ bufs[buf_index++] = uv_buf_init((char*) &xfer_info, sizeof xfer_info); @@ -2141,7 +2141,7 @@ int uv_pipe_open(uv_pipe_t* pipe, uv_file file) { if (pipe->ipc) { assert(!(pipe->flags & UV_HANDLE_NON_OVERLAPPED_PIPE)); pipe->pipe.conn.ipc_remote_pid = uv_os_getppid(); - assert(pipe->pipe.conn.ipc_remote_pid != -1); + assert(pipe->pipe.conn.ipc_remote_pid != (DWORD) -1); } return 0; } @@ -2312,7 +2312,7 @@ uv_handle_type uv_pipe_pending_type(uv_pipe_t* handle) { } int uv_pipe_chmod(uv_pipe_t* handle, int mode) { - SID_IDENTIFIER_AUTHORITY sid_world = SECURITY_WORLD_SID_AUTHORITY; + SID_IDENTIFIER_AUTHORITY sid_world = { SECURITY_WORLD_SID_AUTHORITY }; PACL old_dacl, new_dacl; PSECURITY_DESCRIPTOR sd; EXPLICIT_ACCESS ea; |