Skip to content

Commit

Permalink
Fix mutability problem with openpty FFI
Browse files Browse the repository at this point in the history
  • Loading branch information
cactorium committed Nov 2, 2016
1 parent e197479 commit bc01989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ pub fn openpty(winsize: Option<Winsize>, termios: Option<Termios>) -> Result<Ope
&mut master as *mut libc::c_int,
&mut slave as *mut libc::c_int,
0 as *mut libc::c_char,
c_termios as *const libc::termios,
c_winsize)
c_termios as *mut libc::termios,
c_winsize as *mut Winsize)
};

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

0 comments on commit bc01989

Please sign in to comment.