From 88621bc53ce630b3fc0335b4724f63b3bf099cff Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Wed, 11 May 2011 15:35:06 +0200 Subject: [PATCH] Remove a few more 'mutable' words Didn't see these before because they live in non-Linux code. --- src/lib/macos_OS.rs | 4 ++-- src/lib/win32_OS.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/macos_OS.rs b/src/lib/macos_OS.rs index 700ac17c7b6..2cd6894fb86 100644 --- a/src/lib/macos_OS.rs +++ b/src/lib/macos_OS.rs @@ -63,7 +63,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)); } @@ -73,7 +73,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); } diff --git a/src/lib/win32_OS.rs b/src/lib/win32_OS.rs index b799287c950..7330102e13d 100644 --- a/src/lib/win32_OS.rs +++ b/src/lib/win32_OS.rs @@ -53,7 +53,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), 1024u, + assert (OS.libc._pipe(Vec.buf(fds), 1024u, libc_constants.O_BINARY()) == 0); ret tup(fds.(0), fds.(1)); }