Skip to content

Commit

Permalink
Fix socketcall declaration and invocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
de-vri-es committed Feb 26, 2021
1 parent 64614cf commit df5f0de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/linux_like/android/b32/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,13 @@ f! {
len as ::c_long,
flg as ::c_long,
];
socketcall(SYS_ACCEPT4, &args)
socketcall(SYS_ACCEPT4, args[..].as_mut_ptr())
}
}

extern "C" {
// used to implement `accept4`, but not made public
fn socketcall(call: c_int, args: *mut c_long) -> c_int;
fn socketcall(call: ::c_int, args: *mut ::c_long) -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit df5f0de

Please sign in to comment.