Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iximeow committed Mar 13, 2020
1 parent 0ca2ed3 commit 28eeea6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/libstd/sys/unix/stack_overflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,14 @@ mod imp {
}

unsafe fn get_stackp() -> *mut libc::c_void {
let stackp =
mmap(ptr::null_mut(), SIGSTKSZ + page_size(), PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
let stackp = mmap(
ptr::null_mut(),
SIGSTKSZ + page_size(),
PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON,
-1,
0,
);
if stackp == MAP_FAILED {
panic!("failed to allocate an alternative stack");
}
Expand Down

0 comments on commit 28eeea6

Please sign in to comment.