summaryrefslogtreecommitdiff
path: root/test/test_pty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pty.rs')
-rw-r--r--test/test_pty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pty.rs b/test/test_pty.rs
index 9ee94470..4cc6620c 100644
--- a/test/test_pty.rs
+++ b/test/test_pty.rs
@@ -136,9 +136,9 @@ fn test_open_ptty_pair() {
/// Put the terminal in raw mode.
fn make_raw<Fd: AsFd>(fd: Fd) {
- let mut termios = tcgetattr(fd).unwrap();
+ let mut termios = tcgetattr(&fd).unwrap();
cfmakeraw(&mut termios);
- tcsetattr(fd, SetArg::TCSANOW, &termios).unwrap();
+ tcsetattr(&fd, SetArg::TCSANOW, &termios).unwrap();
}
/// Test `io::Read` on the PTTY master