You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/09/23 12:04:02 UTC
(maka) 02/02: fix(cli): match macOS PTY test FFI signatures
This is an automated email from the ASF dual-hosted git repository.
M4n5ter pushed a commit to branch feat/runtime-host-rust
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 2309bbb072e61d76346188483d06a3ac4fb2d291
Author: Wang <m4...@gmail.com>
AuthorDate: Wed Sep 23 19:56:49 2026 +0800
fix(cli): match macOS PTY test FFI signatures
Generated-by: Codex
---
crates/cli/tests/integration/tui.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/crates/cli/tests/integration/tui.rs b/crates/cli/tests/integration/tui.rs
index 05d06b0c3b..ad95f3b8f3 100644
--- a/crates/cli/tests/integration/tui.rs
+++ b/crates/cli/tests/integration/tui.rs
@@ -825,7 +825,7 @@ impl Pty {
fn spawn_at(args: &[&str], workspace: Option<&std::path::Path>) -> Self {
let mut master = -1;
let mut slave = -1;
- let size = libc::winsize {
+ let mut size = libc::winsize {
ws_row: 40,
ws_col: 120,
ws_xpixel: 0,
@@ -837,8 +837,8 @@ impl Pty {
&mut master,
&mut slave,
std::ptr::null_mut(),
- std::ptr::null(),
- &size,
+ std::ptr::null_mut(),
+ &raw mut size,
)
},
0
@@ -876,7 +876,7 @@ impl Pty {
.stderr(slave.try_clone().unwrap());
unsafe {
command.pre_exec(|| {
- if libc::setsid() < 0 || libc::ioctl(0, libc::TIOCSCTTY, 0) < 0 {
+ if libc::setsid() < 0 || libc::ioctl(0, libc::TIOCSCTTY as _, 0) < 0 {
return Err(std::io::Error::last_os_error());
}
Ok(())
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org