core: Fix os::load_self types on FreeBSD

This commit is contained in:
Brian Anderson 2012-03-02 22:43:56 -08:00
parent 38b2b74413
commit 2d7750bc30

View File

@ -164,7 +164,7 @@ unsafe fn load_self(pth: *mutable c_char, plen: c_uint) -> bool {
KERN_PROC as c_int,
KERN_PROC_PATHNAME as c_int, -1 as c_int];
ret sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
pth as *mutable c_void, ptr::mut_addr_of(plen),
pth as *mutable c_void, ptr::mut_addr_of(plen as size_t),
ptr::null(), 0u as size_t)
== (0 as c_int);
}