From 169daa11155988a210fac949297381743f3cb400 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 23:14:53 +0100 Subject: feat: clang-tidy fixes --- lib/libc/unistd/isatty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/unistd/isatty.c') diff --git a/lib/libc/unistd/isatty.c b/lib/libc/unistd/isatty.c index c253e14a..b356a694 100644 --- a/lib/libc/unistd/isatty.c +++ b/lib/libc/unistd/isatty.c @@ -1,4 +1,4 @@ -#include "asm/unistd_64.h" // for __NR_ioctl + #include // for TIOCGWINSZ #include // for __syscall_3, syscall @@ -8,5 +8,5 @@ int isatty(int fildes) { struct winsize winsize; - return 1 + syscall(ioctl, fildes, TIOCGWINSZ, &winsize); + return (int)(1 + syscall(ioctl, fildes, TIOCGWINSZ, &winsize)); } -- cgit v1.2.3