From 0dccff86e50dfe1555b8bc29862dba2b972a3705 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sun, 17 Mar 2024 20:55:34 +0100 Subject: stuff --- kernel/poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/poll.c') diff --git a/kernel/poll.c b/kernel/poll.c index 8174657..7107646 100644 --- a/kernel/poll.c +++ b/kernel/poll.c @@ -18,7 +18,7 @@ int poll(struct pollfd *fds, size_t nfds, int timeout) { if (fds[i].fd < 0) { continue; } - vfs_fd_t *f = get_vfs_fd(fds[i].fd); + vfs_fd_t *f = get_vfs_fd(fds[i].fd, NULL); if (NULL == f) { continue; } @@ -51,7 +51,7 @@ int poll(struct pollfd *fds, size_t nfds, int timeout) { fds[i].revents = 0; continue; } - vfs_fd_t *f = get_vfs_fd(fds[i].fd); + vfs_fd_t *f = get_vfs_fd(fds[i].fd, NULL); if (!f) { if (fds[i].events & POLLHUP) { fds[i].revents |= POLLHUP; -- cgit v1.2.3