diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-11 15:35:06 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-11 15:39:39 +0200 |
| commit | 88621bc53ce630b3fc0335b4724f63b3bf099cff (patch) | |
| tree | 59f313267c44d8ba81e0c54ae7889495942e48f1 /src | |
| parent | Get rid of arm indices (diff) | |
| download | rust-88621bc53ce630b3fc0335b4724f63b3bf099cff.tar.xz rust-88621bc53ce630b3fc0335b4724f63b3bf099cff.zip | |
Remove a few more 'mutable' words
Didn't see these before because they live in non-Linux code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/macos_OS.rs | 4 | ||||
| -rw-r--r-- | 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 700ac17c..2cd6894f 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 b799287c..7330102e 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)); } |