Fix socklen_t type

This commit is contained in:
Jeremy Soller
2025-11-07 18:10:17 -07:00
parent 443145fdee
commit 16814d2e32
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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,
)
}
}
+1 -1
View File
@@ -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)]