diff options
| author | Michael Jones <michaelrj@google.com> | 2023-08-02 16:30:26 -0700 |
|---|---|---|
| committer | Michael Jones <michaelrj@google.com> | 2023-08-07 15:03:01 -0700 |
| commit | f0a3954ef1af274cb0b79a6e0bc51a31e0de540b (patch) | |
| tree | 3036b7d657907c56e78214c50fe9b6b736e70b99 /libc/src/termios/linux/tcflush.cpp | |
| parent | f6267d3b98c11b50bf24946f21c6646d2d3f6fa8 (diff) | |
[libc][cleanup] Fix most conversion warnings
This patch is large, but is almost entirely just adding casts to calls
to syscall_impl. Much of the work was done programatically, with human
checking when the syntax or types got confusing.
Reviewed By: mcgrathr
Differential Revision: https://reviews.llvm.org/D156950
Diffstat (limited to 'libc/src/termios/linux/tcflush.cpp')
| -rw-r--r-- | libc/src/termios/linux/tcflush.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/src/termios/linux/tcflush.cpp b/libc/src/termios/linux/tcflush.cpp index 8e1f4077d109..26183293142a 100644 --- a/libc/src/termios/linux/tcflush.cpp +++ b/libc/src/termios/linux/tcflush.cpp @@ -19,7 +19,8 @@ namespace __llvm_libc { LLVM_LIBC_FUNCTION(int, tcflush, (int fd, int queue_selector)) { - long ret = __llvm_libc::syscall_impl(SYS_ioctl, fd, TCFLSH, queue_selector); + int ret = + __llvm_libc::syscall_impl<int>(SYS_ioctl, fd, TCFLSH, queue_selector); if (ret < 0) { libc_errno = -ret; return -1; |
