Skip to content

Commit

Permalink
auto merge of #17477 : vhbit/rust/ios-deprecation-fix, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Sep 24, 2014
2 parents 9e3bf02 + cef8661 commit e0bd16c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/libstd/os.rs
Expand Up @@ -1173,9 +1173,7 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
let utf_c_str: *const libc::c_char =
mem::transmute(objc_msgSend(tmp, utf8Sel));
let s = CString::new(utf_c_str, false);
if s.is_not_null() {
res.push(s.as_bytes_no_nul().to_vec())
}
res.push(s.as_bytes_no_nul().to_vec())
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/libstd/rt/backtrace.rs
Expand Up @@ -278,9 +278,10 @@ mod imp {
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};

// skipping the first one as it is write itself
result::fold_(range(1, cnt).map(|i| {
let iter = range(1, cnt).map(|i| {
print(w, i as int, buf[i])
}))
});
result::fold(iter, (), |_, _| ())
}

#[cfg(not(target_os = "ios", target_arch = "arm"))]
Expand Down

0 comments on commit e0bd16c

Please sign in to comment.