summaryrefslogtreecommitdiff
path: root/kernel/poll.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
committerAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
commit0dccff86e50dfe1555b8bc29862dba2b972a3705 (patch)
tree8d0c354c65278afdc3427bb52e1e63900ccdbc05 /kernel/poll.c
parent2e8b474d4219e7faaac3823e73c8d528c2698a37 (diff)
stuff
Diffstat (limited to 'kernel/poll.c')
-rw-r--r--kernel/poll.c4
1 files changed, 2 insertions, 2 deletions
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;