We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e584f2 commit a544b83Copy full SHA for a544b83
src/libcore/os.rs
@@ -394,7 +394,7 @@ fn self_exe_path() -> Option<Path> {
394
let mib = ~[CTL_KERN as c_int,
395
KERN_PROC as c_int,
396
KERN_PROC_PATHNAME as c_int, -1 as c_int];
397
- sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
+ sysctl(vec::raw::to_ptr(mib), vec::len(mib) as c_uint,
398
buf as *mut c_void, ptr::mut_addr_of(sz),
399
ptr::null(), 0u as size_t) == (0 as c_int)
400
}
0 commit comments