diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-08-30 03:53:36 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-08-30 03:53:36 +0000 |
commit | 347e9090ca9c8406fbbc65e36387e28e2e819f6f (patch) | |
tree | 46aadb92d00ee598fec578e067862b499ae46751 /test/sys | |
parent | bc1cc08c077b2f67aa43f6219fedaf972dde5bcf (diff) | |
parent | 2d4b13715aa46741c7cd5d2e4461eb0c44f8d424 (diff) | |
download | nix-347e9090ca9c8406fbbc65e36387e28e2e819f6f.zip |
Merge #745
745: Use upstream libc definitions for fcntl FFI r=asomers a=Susurrus
Diffstat (limited to 'test/sys')
-rw-r--r-- | test/sys/test_termios.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_termios.rs b/test/sys/test_termios.rs index 2455a4e5..6640c3af 100644 --- a/test/sys/test_termios.rs +++ b/test/sys/test_termios.rs @@ -116,7 +116,7 @@ fn test_local_flags() { // Set the master is in nonblocking mode or reading will never return. let flags = fcntl::fcntl(pty.master, fcntl::F_GETFL).unwrap(); - let new_flags = fcntl::OFlag::from_bits(flags).unwrap() | fcntl::O_NONBLOCK; + let new_flags = fcntl::OFlag::from_bits_truncate(flags) | fcntl::O_NONBLOCK; fcntl::fcntl(pty.master, fcntl::F_SETFL(new_flags)).unwrap(); // Write into the master |