We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9e2ca0 + 2bd826c commit 25e8b6eCopy full SHA for 25e8b6e
src/libstd/rt/backtrace.rs
@@ -261,7 +261,7 @@ mod imp {
261
use slice::{MutableVector};
262
263
extern {
264
- fn backtrace(buf: *mut *const libc::c_void,
+ fn backtrace(buf: *mut *mut libc::c_void,
265
sz: libc::c_int) -> libc::c_int;
266
}
267
@@ -274,7 +274,7 @@ mod imp {
274
try!(writeln!(w, "stack backtrace:"));
275
// 100 lines should be enough
276
static SIZE: libc::c_int = 100;
277
- let mut buf: [*const libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
+ let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
278
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE) as uint};
279
280
// skipping the first one as it is write itself
0 commit comments