Remove 'deprecated mutable...' from our code

This should make compilation a bit less noisy.
This commit is contained in:
Marijn Haverbeke
2011-05-05 20:17:44 +02:00
parent 3d738e9e06
commit 1f45dda9d2
15 changed files with 43 additions and 43 deletions

View File

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