Skip to content

Commit 0e3fcdb

Browse files
committed
Fix mutability problem with openpty FFI
1 parent 397840a commit 0e3fcdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ pub fn openpty(winsize: Option<Winsize>, termios: Option<Termios>) -> Result<Ope
3737
&mut master as *mut libc::c_int,
3838
&mut slave as *mut libc::c_int,
3939
0 as *mut libc::c_char,
40-
c_termios as *const libc::termios,
41-
c_winsize)
40+
c_termios as *mut libc::termios,
41+
c_winsize as *mut Winsize)
4242
};
4343

4444
let _ = try!(Errno::result(ret));

0 commit comments

Comments
 (0)