aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-10 17:49:53 -0700
committerPatrick Walton <[email protected]>2011-05-10 17:50:39 -0700
commit869e9017ebfbb222503c503a1b319b5a3e81f74b (patch)
tree09d02ef156bfbaeec999729904cac3257710d275 /src/lib
parentrustc: Lower the size limit on ty_to_short_str() and always call it in favor ... (diff)
downloadrust-869e9017ebfbb222503c503a1b319b5a3e81f74b.tar.xz
rust-869e9017ebfbb222503c503a1b319b5a3e81f74b.zip
rustc: Create mutable vectors in macos_OS.rs. Should put out Darwin tinderbox.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/macos_OS.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/macos_OS.rs b/src/lib/macos_OS.rs
index 0970da72..700ac17c 100644
--- a/src/lib/macos_OS.rs
+++ b/src/lib/macos_OS.rs
@@ -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);
}