rustc: Create mutable vectors in macos_OS.rs. Should put out Darwin tinderbox.

This commit is contained in:
Patrick Walton 2011-05-10 17:49:53 -07:00
parent 1448fc1a24
commit 869e9017eb

View File

@ -62,7 +62,7 @@ fn dylib_filename(str base) -> str {
}
fn pipe() -> tup(int, int) {
let vec[mutable int] fds = vec(0, 0);
let vec[mutable int] fds = vec(mutable 0, 0);
assert (OS.libc.pipe(Vec.buf[mutable int](fds)) == 0);
ret tup(fds.(0), fds.(1));
}
@ -72,7 +72,7 @@ fn fd_FILE(int fd) -> libc.FILE {
}
fn waitpid(int pid) -> int {
let vec[mutable int] status = vec(0);
let vec[mutable int] status = vec(mutable 0);
assert (OS.libc.waitpid(pid, Vec.buf[mutable int](status), 0) != -1);
ret status.(0);
}