Skip to content

Commit

Permalink
Auto merge of #29003 - tari:freebsd-current_exe-vec, r=alexcrichton
Browse files Browse the repository at this point in the history
Fixes #28995.
  • Loading branch information
bors committed Oct 14, 2015
2 parents 18268bf + 7db4163 commit 56a1419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libstd/sys/unix/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ pub fn current_exe() -> io::Result<PathBuf> {
unsafe {
use libc::funcs::bsd44::*;
use libc::consts::os::extra::*;
let mut mib = vec![CTL_KERN as c_int,
KERN_PROC as c_int,
KERN_PROC_PATHNAME as c_int,
-1 as c_int];
let mut mib = [CTL_KERN as c_int,
KERN_PROC as c_int,
KERN_PROC_PATHNAME as c_int,
-1 as c_int];
let mut sz: libc::size_t = 0;
let err = sysctl(mib.as_mut_ptr(), mib.len() as ::libc::c_uint,
ptr::null_mut(), &mut sz, ptr::null_mut(),
Expand Down

0 comments on commit 56a1419

Please sign in to comment.