summaryrefslogtreecommitdiff
path: root/www/deno/files/patch-runtime_ops_tty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'www/deno/files/patch-runtime_ops_tty.rs')
-rw-r--r--www/deno/files/patch-runtime_ops_tty.rs18
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;