mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
simplify code
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
parent
efa361dd7c
commit
536d12d20d
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ mod linux_only {
|
||||||
|
|
||||||
let mut fds: [c_int; 2] = [0, 0];
|
let mut fds: [c_int; 2] = [0, 0];
|
||||||
assert!(
|
assert!(
|
||||||
!(unsafe { libc::pipe(&mut fds as *mut c_int) } != 0),
|
(unsafe { libc::pipe(&mut fds as *mut c_int) } == 0),
|
||||||
"Failed to create pipe"
|
"Failed to create pipe"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue