Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: remove kqueue cb == NULL check

The other implementations don't check for it and it's making the counters_init
test fail.
  • Loading branch information...
bnoordhuis committed Apr 23, 2012
1 parent 1fa1c51 commit 1f001fe917dc4955382a3c2b8ff9bad3530ae970
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/unix/kqueue.c
@@ -97,11 +97,6 @@ int uv_fs_event_init(uv_loop_t* loop,
/* We don't support any flags yet. */
assert(!flags);

if (cb == NULL) {
uv__set_sys_error(loop, EINVAL);
return -1;
}

/* TODO open asynchronously - but how do we report back errors? */
if ((fd = open(filename, O_RDONLY)) == -1) {
uv__set_sys_error(loop, errno);

0 comments on commit 1f001fe

Please sign in to comment.
You can’t perform that action at this time.