aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/event/rstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/event/rstream.c')
-rw-r--r--src/nvim/event/rstream.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/nvim/event/rstream.c b/src/nvim/event/rstream.c
index 73828a2271..f50c8a0e5a 100644
--- a/src/nvim/event/rstream.c
+++ b/src/nvim/event/rstream.c
@@ -2,18 +2,18 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
-#include <sys/types.h>
#include <uv.h>
-#include "nvim/event/loop.h"
+#include "nvim/event/multiqueue.h"
#include "nvim/event/rstream.h"
#include "nvim/event/stream.h"
-#include "nvim/func_attr.h"
#include "nvim/log.h"
#include "nvim/macros_defs.h"
#include "nvim/main.h"
#include "nvim/os/os_defs.h"
#include "nvim/rbuffer.h"
+#include "nvim/rbuffer_defs.h"
+#include "nvim/types_defs.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "event/rstream.c.generated.h"
@@ -201,10 +201,6 @@ static void invoke_read_cb(Stream *stream, size_t count, bool eof)
// Don't let the stream be closed before the event is processed.
stream->pending_reqs++;
- CREATE_EVENT(stream->events,
- read_event,
- 3,
- stream,
- (void *)(uintptr_t *)count,
- (void *)(uintptr_t)eof);
+ CREATE_EVENT(stream->events, read_event,
+ stream, (void *)(uintptr_t *)count, (void *)(uintptr_t)eof);
}