Skip to content

Commit df5f0de

Browse files
committed
Fix socketcall declaration and invocation.
1 parent 64614cf commit df5f0de

File tree

1 file changed

+2
-2
lines changed
  • src/unix/linux_like/android/b32/x86

1 file changed

+2
-2
lines changed

src/unix/linux_like/android/b32/x86/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,13 +599,13 @@ f! {
599599
len as ::c_long,
600600
flg as ::c_long,
601601
];
602-
socketcall(SYS_ACCEPT4, &args)
602+
socketcall(SYS_ACCEPT4, args[..].as_mut_ptr())
603603
}
604604
}
605605

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

611611
cfg_if! {

0 commit comments

Comments
 (0)