We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8b57d commit 4b5b96cCopy full SHA for 4b5b96c
src/lib/macos_OS.rs
@@ -62,7 +62,7 @@ fn dylib_filename(str base) -> str {
62
}
63
64
fn pipe() -> tup(int, int) {
65
- let vec[mutable int] fds = vec(mutable 0, 0);
+ let vec[mutable int] fds = vec(0, 0);
66
assert (OS.libc.pipe(Vec.buf[mutable int](fds)) == 0);
67
ret tup(fds.(0), fds.(1));
68
@@ -72,7 +72,7 @@ fn fd_FILE(int fd) -> libc.FILE {
72
73
74
fn waitpid(int pid) -> int {
75
- let vec[mutable int] status = vec(mutable 0);
+ let vec[mutable int] status = vec(0);
76
assert (OS.libc.waitpid(pid, Vec.buf[mutable int](status), 0) != -1);
77
ret status.(0);
78
0 commit comments