Skip to content

Commit

Permalink
auto merge of #15404 : vhbit/rust/ios-ptr-fixes, r=pcwalton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jul 4, 2014
2 parents c9e2ca0 + 2bd826c commit 25e8b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/rt/backtrace.rs
Expand Up @@ -261,7 +261,7 @@ mod imp {
use slice::{MutableVector};

extern {
fn backtrace(buf: *mut *const libc::c_void,
fn backtrace(buf: *mut *mut libc::c_void,
sz: libc::c_int) -> libc::c_int;
}

Expand All @@ -274,7 +274,7 @@ mod imp {
try!(writeln!(w, "stack backtrace:"));
// 100 lines should be enough
static SIZE: libc::c_int = 100;
let mut buf: [*const libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE) as uint};

// skipping the first one as it is write itself
Expand Down

0 comments on commit 25e8b6e

Please sign in to comment.