aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event
diff options
context:
space:
mode:
authorMichael Reed <Pyrohh@users.noreply.github.com>2015-11-25 19:52:33 -0500
committerMichael Reed <Pyrohh@users.noreply.github.com>2015-11-25 19:52:33 -0500
commitd3dbaa321b86bd35e12e759590418e3fbe1929ae (patch)
tree8f8eb05cc5ae6d4bdc2d1325a40af8c82f49fc20 /src/nvim/event
parent4f24b9e06f59592c120dd6d5c1e7f0f4a53b23f1 (diff)
parentd873084581c5c94d2a910aea8561ea1d64eeafbd (diff)
downloadrneovim-d3dbaa321b86bd35e12e759590418e3fbe1929ae.tar.gz
rneovim-d3dbaa321b86bd35e12e759590418e3fbe1929ae.tar.bz2
rneovim-d3dbaa321b86bd35e12e759590418e3fbe1929ae.zip
Merge pull request #3531 from equalsraf/tb-cleanup-os-errors
[RFC] Cleanup use of os_* functions errors and errno
Diffstat (limited to 'src/nvim/event')
-rw-r--r--src/nvim/event/socket.c2
-rw-r--r--src/nvim/event/stream.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/event/socket.c b/src/nvim/event/socket.c
index 347e464d25..93cc592683 100644
--- a/src/nvim/event/socket.c
+++ b/src/nvim/event/socket.c
@@ -97,7 +97,7 @@ int socket_watcher_start(SocketWatcher *watcher, int backlog, socket_cb cb)
result = uv_listen(watcher->stream, backlog, connection_cb);
}
- assert(result <= 0); // libuv should have returned -errno or zero.
+ assert(result <= 0); // libuv should return negative error code or zero.
if (result < 0) {
if (result == -EACCES) {
// Libuv converts ENOENT to EACCES for Windows compatibility, but if
diff --git a/src/nvim/event/stream.c b/src/nvim/event/stream.c
index 376eb9fce7..71582ab357 100644
--- a/src/nvim/event/stream.c
+++ b/src/nvim/event/stream.c
@@ -13,7 +13,7 @@
/// Sets the stream associated with `fd` to "blocking" mode.
///
-/// @return `0` on success, or `-errno` on failure.
+/// @return `0` on success, or libuv error code on failure.
int stream_set_blocking(int fd, bool blocking)
{
// Private loop to avoid conflict with existing watcher(s):