summaryrefslogtreecommitdiffstats
path: root/src/unix/loop-watcher.c
diff options
context:
space:
mode:
authorlibuv upstream <libuv@googlegroups.com>2018-05-06 21:48:02 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-07 15:47:58 (GMT)
commitc8b67ea119c4000018238f6c3201a1364356d93a (patch)
tree0ab31e431ee82c0796c1b06922347762aa12b347 /src/unix/loop-watcher.c
parentf4a26c748b5ea2cafecdf5490b744a2b167c01ae (diff)
downloadCMake-c8b67ea119c4000018238f6c3201a1364356d93a.zip
CMake-c8b67ea119c4000018238f6c3201a1364356d93a.tar.gz
CMake-c8b67ea119c4000018238f6c3201a1364356d93a.tar.bz2
libuv 2018-05-06 (bf605bd7)
Code extracted from: https://github.com/libuv/libuv.git at commit bf605bd7d0dd5660663e8e2eb44d63aa3355e268 (v1.x).
Diffstat (limited to 'src/unix/loop-watcher.c')
-rw-r--r--src/unix/loop-watcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/loop-watcher.c b/src/unix/loop-watcher.c
index 340bb0d..b8c1c2a 100644
--- a/src/unix/loop-watcher.c
+++ b/src/unix/loop-watcher.c
@@ -31,7 +31,7 @@
\
int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \
if (uv__is_active(handle)) return 0; \
- if (cb == NULL) return -EINVAL; \
+ if (cb == NULL) return UV_EINVAL; \
QUEUE_INSERT_HEAD(&handle->loop->name##_handles, &handle->queue); \
handle->name##_cb = cb; \
uv__handle_start(handle); \