diff options
| author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-10-20 00:02:01 +0100 |
|---|---|---|
| committer | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-11-25 23:15:37 +0000 |
| commit | 8dea8a036fcf4f8d0ce8fd26cc3826067b384f13 (patch) | |
| tree | 3527473d564080b2a5e5c67d5d9a9ddd9eab9bcc /src/nvim/event | |
| parent | 4f24b9e06f59592c120dd6d5c1e7f0f4a53b23f1 (diff) | |
| download | rneovim-8dea8a036fcf4f8d0ce8fd26cc3826067b384f13.tar.gz rneovim-8dea8a036fcf4f8d0ce8fd26cc3826067b384f13.tar.bz2 rneovim-8dea8a036fcf4f8d0ce8fd26cc3826067b384f13.zip | |
Fix comments for os_* functions return value
In windows libuv does not return -errno, instead it uses negative
error codes e.g. UV_ENOENT. This commit changes the comments in os_*
functions to reflect this.
Diffstat (limited to 'src/nvim/event')
| -rw-r--r-- | src/nvim/event/socket.c | 2 | ||||
| -rw-r--r-- | src/nvim/event/stream.c | 2 |
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): |