Skip to content

Commit 1c7f291

Browse files
committed
Modify QNX NTO dl_iterate_phdr to toke * mut
All other platforms use `* mut`, and while this is technically a breaking change, most likely noone is using it directly. See also rust-lang/backtrace-rs#648
1 parent c27c43f commit 1c7f291

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/unix/nto/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -3340,7 +3340,10 @@ extern "C" {
33403340
pub fn dl_iterate_phdr(
33413341
callback: ::Option<
33423342
unsafe extern "C" fn(
3343-
info: *const dl_phdr_info,
3343+
// The original .h file declares this as *const, but for consistency with other platforms,
3344+
// changing this to *mut to make it easier to use.
3345+
// Maybe in v0.3 all platforms should use this as a *const.
3346+
info: *mut dl_phdr_info,
33443347
size: ::size_t,
33453348
data: *mut ::c_void,
33463349
) -> ::c_int,

0 commit comments

Comments
 (0)