Fix redox futimens fd type

This commit is contained in:
Jeremy Soller
2018-07-29 07:22:41 -06:00
parent a9fcb973f6
commit bc7f7356b9
+1 -1
View File
@@ -286,7 +286,7 @@ pub fn utimens(path: *const c_char, times: *const timespec) -> c_int {
match syscall::open(path, O_STAT) {
Err(err) => e(Err(err)) as c_int,
Ok(fd) => {
let res = futimens(fd, times);
let res = futimens(fd as c_int, times);
let _ = syscall::close(fd);
res
}