aboutsummaryrefslogtreecommitdiff
path: root/src/lib/linux_os.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-05 20:17:44 +0200
committerMarijn Haverbeke <[email protected]>2011-05-05 20:19:43 +0200
commit1f45dda9d2944a90e1dfa9599d030cbfb4f927b7 (patch)
tree1a1d7c3e15af362539d6788af29ab27d751c6416 /src/lib/linux_os.rs
parentReturn a fresh, unreachable context after ret, break, and cont (diff)
downloadrust-1f45dda9d2944a90e1dfa9599d030cbfb4f927b7.tar.xz
rust-1f45dda9d2944a90e1dfa9599d030cbfb4f927b7.zip
Remove 'deprecated mutable...' from our code
This should make compilation a bit less noisy.
Diffstat (limited to 'src/lib/linux_os.rs')
-rw-r--r--src/lib/linux_os.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/linux_os.rs b/src/lib/linux_os.rs
index d2a8ff97..a37db418 100644
--- a/src/lib/linux_os.rs
+++ b/src/lib/linux_os.rs
@@ -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);
}