summaryrefslogtreecommitdiff
path: root/kernel/drivers/pst.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/drivers/pst.c
parent2e8b474d4219e7faaac3823e73c8d528c2698a37 (diff)
stuff
Diffstat (limited to 'kernel/drivers/pst.c')
-rw-r--r--kernel/drivers/pst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/pst.c b/kernel/drivers/pst.c
index f8a0414..77b1b8b 100644
--- a/kernel/drivers/pst.c
+++ b/kernel/drivers/pst.c
@@ -12,8 +12,8 @@ int openpty(int *amaster, int *aslave, char *name,
pipe(fd); // This depends upon that pipe will support read and write
// through the same fd. In reality this should not be the
// case.
- get_vfs_fd(fd[0])->is_tty = 1;
- get_vfs_fd(fd[1])->is_tty = 1;
+ get_vfs_fd(fd[0], NULL)->is_tty = 1;
+ get_vfs_fd(fd[1], NULL)->is_tty = 1;
*amaster = fd[0];
*aslave = fd[1];
return 0;