diff options
author | Mikael Urankar <mikael@FreeBSD.org> | 2022-11-19 10:26:13 +0100 |
---|---|---|
committer | Mikael Urankar <mikael@FreeBSD.org> | 2022-11-19 12:26:51 +0100 |
commit | bbe39ca3d74a4a7762a5f1145cd7abb87b02b59f (patch) | |
tree | 4601ef700b898ad0b88ddd94c72a7eb972c26916 /www/deno/files/patch-runtime_ops_tty.rs | |
parent | print/py-uharfbuzz: Update BUILD_DEPENDS after 644e2a562cc75a56118e4f01fd26f4... (diff) |
www/deno: Update to 1.28.1
Changes:
https://github.com/denoland/deno/releases/tag/v1.26.2
https://github.com/denoland/deno/releases/tag/v1.27.0
https://github.com/denoland/deno/releases/tag/v1.27.1
https://github.com/denoland/deno/releases/tag/v1.27.2
https://github.com/denoland/deno/releases/tag/v1.28.0
https://github.com/denoland/deno/releases/tag/v1.28.1
Diffstat (limited to 'www/deno/files/patch-runtime_ops_tty.rs')
-rw-r--r-- | www/deno/files/patch-runtime_ops_tty.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/www/deno/files/patch-runtime_ops_tty.rs b/www/deno/files/patch-runtime_ops_tty.rs index af9d89181cc8..fb878f5ee083 100644 --- a/www/deno/files/patch-runtime_ops_tty.rs +++ b/www/deno/files/patch-runtime_ops_tty.rs @@ -1,11 +1,11 @@ --- runtime/ops/tty.rs.orig 2020-12-14 21:25:05 UTC +++ runtime/ops/tty.rs -@@ -227,7 +227,7 @@ fn op_console_size( - let fd = std_file.as_raw_fd(); - unsafe { - let mut size: libc::winsize = std::mem::zeroed(); -- if libc::ioctl(fd, libc::TIOCGWINSZ, &mut size as *mut _) != 0 { -+ if libc::ioctl(fd, libc::TIOCGWINSZ.into(), &mut size as *mut _) != 0 { - return Err(Error::last_os_error().into()); - } - +@@ -232,7 +232,7 @@ fn op_console_size( + #[allow(clippy::undocumented_unsafe_blocks)] + unsafe { + let mut size: libc::winsize = std::mem::zeroed(); +- if libc::ioctl(fd, libc::TIOCGWINSZ, &mut size as *mut _) != 0 { ++ if libc::ioctl(fd, libc::TIOCGWINSZ.into(), &mut size as *mut _) != 0 { + return Err(Error::last_os_error().into()); + } + result[0] = size.ws_col as u32; |