summaryrefslogtreecommitdiff
path: root/kernel/syscalls/isatty.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-02-21 00:14:29 +0100
committerAnton Kling <anton@kling.gg>2024-02-21 00:14:29 +0100
commit8ff63b062d724826d8017504063df9b92f8e6703 (patch)
tree03bf0b5a278a4908da8912f956e5651bea9412f1 /kernel/syscalls/isatty.c
parenta85eacdd2406fede4d6ff5cb130b1758978cabb3 (diff)
New clang-format options
Diffstat (limited to 'kernel/syscalls/isatty.c')
-rw-r--r--kernel/syscalls/isatty.c6
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;
}