diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-09 19:55:28 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-09 21:52:37 -0700 |
| commit | 5ede96c2fd62a63e75cb5faf073933d914f3eeaf (patch) | |
| tree | 115dbfe9509870d8ed1834494318e773935c8b8d /src/libnative | |
| parent | 24cbe384236b28512f0b8bc22343fbe4c4481c62 (diff) | |
| download | rust-5ede96c2fd62a63e75cb5faf073933d914f3eeaf.tar.gz rust-5ede96c2fd62a63e75cb5faf073933d914f3eeaf.zip | |
Test fixes from rollup
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/file_win32.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnative/io/file_win32.rs b/src/libnative/io/file_win32.rs index 0e6c5c744f4..5ace8e347c6 100644 --- a/src/libnative/io/file_win32.rs +++ b/src/libnative/io/file_win32.rs @@ -18,7 +18,7 @@ use std::mem; use std::os::win32::fill_utf16_buf_and_decode; use std::ptr; use std::rt::rtio; -use std::rt::rtio::IoResult; +use std::rt::rtio::{IoResult, IoError}; use std::str; use std::vec; @@ -412,7 +412,7 @@ pub fn rename(old: &CString, new: &CString) -> IoResult<()> { pub fn chmod(p: &CString, mode: uint) -> IoResult<()> { let p = try!(to_utf16(p)); super::mkerr_libc(unsafe { - libc::wchmod(p.as_ptr(), mode.bits() as libc::c_int) + libc::wchmod(p.as_ptr(), mode as libc::c_int) }) } |
