Skip to content

Commit a544b83

Browse files
committed
core: Fix stray usage of vec::unsafe on FreeBSD
1 parent 0e584f2 commit a544b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ fn self_exe_path() -> Option<Path> {
394394
let mib = ~[CTL_KERN as c_int,
395395
KERN_PROC as c_int,
396396
KERN_PROC_PATHNAME as c_int, -1 as c_int];
397-
sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
397+
sysctl(vec::raw::to_ptr(mib), vec::len(mib) as c_uint,
398398
buf as *mut c_void, ptr::mut_addr_of(sz),
399399
ptr::null(), 0u as size_t) == (0 as c_int)
400400
}

0 commit comments

Comments
 (0)