Skip to content

Commit 59564a0

Browse files
committed
Fix FreeBSD build
Signed-off-by: Maxim Zhiburt <[email protected]>
1 parent 727b814 commit 59564a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ fn get_slave_name(fd: &PtyMaster) -> Result<String> {
482482

483483
if !isptmaster(fd)? {
484484
// never reached according current implementation of isptmaster
485-
return Err(nix::Error::Sys(Errno::EINVAL));
485+
return Err(nix::Error::EINVAL);
486486
}
487487

488488
// todo: Need to determine the correct size via some contstant like SPECNAMELEN in <sys/filio.h>

0 commit comments

Comments
 (0)