diff options
Diffstat (limited to 'kernel/syscalls/isatty.c')
-rw-r--r-- | kernel/syscalls/isatty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/syscalls/isatty.c b/kernel/syscalls/isatty.c index 883886e..9f3cca1 100644 --- a/kernel/syscalls/isatty.c +++ b/kernel/syscalls/isatty.c @@ -4,9 +4,11 @@ int syscall_isatty(int fd) { vfs_fd_t *fd_ptr = get_vfs_fd(fd); - if (!fd_ptr) + if (!fd_ptr) { return -EBADF; - if (!fd_ptr->is_tty) + } + if (!fd_ptr->is_tty) { return -ENOTTY; + } return 1; } |