File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/try/src/libnative/io Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3770c42a4959cbabc73da52abc7e3db96657974e
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: d6736a1440d42f6af967a8a20ab8d73522112b72
5
- refs/heads/try: 24cbe384236b28512f0b8bc22343fbe4c4481c62
5
+ refs/heads/try: 5ede96c2fd62a63e75cb5faf073933d914f3eeaf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use std::mem;
18
18
use std:: os:: win32:: fill_utf16_buf_and_decode;
19
19
use std:: ptr;
20
20
use std:: rt:: rtio;
21
- use std:: rt:: rtio:: IoResult ;
21
+ use std:: rt:: rtio:: { IoResult , IoError } ;
22
22
use std:: str;
23
23
use std:: vec;
24
24
@@ -412,7 +412,7 @@ pub fn rename(old: &CString, new: &CString) -> IoResult<()> {
412
412
pub fn chmod ( p : & CString , mode : uint ) -> IoResult < ( ) > {
413
413
let p = try!( to_utf16 ( p) ) ;
414
414
super :: mkerr_libc ( unsafe {
415
- libc:: wchmod ( p. as_ptr ( ) , mode. bits ( ) as libc:: c_int )
415
+ libc:: wchmod ( p. as_ptr ( ) , mode as libc:: c_int )
416
416
} )
417
417
}
418
418
You can’t perform that action at this time.
0 commit comments