Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use from_bits_retain for all Termios wrapper fields. #2253

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test on more platforms.
qwandor committed Dec 7, 2023
commit b1a3e082c29c2db8d1ab42f9a55af48cf5821578
11 changes: 1 addition & 10 deletions src/sys/termios.rs
Original file line number Diff line number Diff line change
@@ -941,17 +941,8 @@ mod test {
c_oflag: 0xd00d,
c_cflag: 0x6642,
c_lflag: 0x1234,
#[cfg(any(linux_android, target_os = "haiku"))]
c_line: 0x00,
c_cc: [0; NCCS],
#[cfg(not(target_env = "musl"))]
c_ispeed: 0,
#[cfg(not(target_env = "musl"))]
c_ospeed: 0,
#[cfg(target_env = "musl")]
__c_ispeed: 0,
#[cfg(target_env = "musl")]
__c_ospeed: 0,
..unsafe { std::mem::zeroed() }
};

let mut attrs: Termios = original.into();