Fix socklen_t type
This commit is contained in:
@@ -126,7 +126,7 @@ pub unsafe extern "C" fn inet_ntoa(r#in: in_addr) -> *const c_char {
|
||||
AF_INET,
|
||||
&r#in as *const in_addr as *const c_void,
|
||||
NTOA_ADDR.unsafe_mut().as_mut_ptr(),
|
||||
NTOA_ADDR.unsafe_ref().len(),
|
||||
NTOA_ADDR.unsafe_ref().len() as socklen_t,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ use crate::{
|
||||
pub mod constants;
|
||||
|
||||
pub type sa_family_t = u16;
|
||||
pub type socklen_t = size_t;
|
||||
pub type socklen_t = u32;
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Default)]
|
||||
|
||||
Reference in New Issue
Block a user