Skip to content

Commit b1a3e08

Browse files
committed
Fix test on more platforms.
1 parent 5035f4c commit b1a3e08

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/sys/termios.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -941,17 +941,8 @@ mod test {
941941
c_oflag: 0xd00d,
942942
c_cflag: 0x6642,
943943
c_lflag: 0x1234,
944-
#[cfg(any(linux_android, target_os = "haiku"))]
945-
c_line: 0x00,
946944
c_cc: [0; NCCS],
947-
#[cfg(not(target_env = "musl"))]
948-
c_ispeed: 0,
949-
#[cfg(not(target_env = "musl"))]
950-
c_ospeed: 0,
951-
#[cfg(target_env = "musl")]
952-
__c_ispeed: 0,
953-
#[cfg(target_env = "musl")]
954-
__c_ospeed: 0,
945+
..unsafe { std::mem::zeroed() }
955946
};
956947

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

0 commit comments

Comments
 (0)