From 46edf9ba6507a0cfeac70b575733288b21a53208 Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 2 Feb 2026 09:43:33 +0000 Subject: [PATCH] sys_socket and netdb header cleanup --- src/header/netdb/host.rs | 2 +- src/header/netdb/lookup.rs | 5 ++++- src/header/sys_socket/constants.rs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/header/netdb/host.rs b/src/header/netdb/host.rs index f78f39ab15..5eaed15fcd 100644 --- a/src/header/netdb/host.rs +++ b/src/header/netdb/host.rs @@ -11,7 +11,7 @@ use crate::{ platform::{ Pal, Sys, rlb::{Line, RawLineBuffer}, - types::*, + types::{c_char, c_int}, }, raw_cell::RawCell, }; diff --git a/src/header/netdb/lookup.rs b/src/header/netdb/lookup.rs index 90d55fca2c..834456bf7f 100644 --- a/src/header/netdb/lookup.rs +++ b/src/header/netdb/lookup.rs @@ -7,7 +7,10 @@ use core::mem; use crate::{ out::Out, - platform::{Pal, Sys, types::*}, + platform::{ + Pal, Sys, + types::{c_int, c_void}, + }, }; use crate::header::{ diff --git a/src/header/sys_socket/constants.rs b/src/header/sys_socket/constants.rs index 524ede079a..7d6c8b972f 100644 --- a/src/header/sys_socket/constants.rs +++ b/src/header/sys_socket/constants.rs @@ -1,4 +1,4 @@ -use crate::platform::types::*; +use crate::platform::types::c_int; pub const SOCK_STREAM: c_int = 1; pub const SOCK_DGRAM: c_int = 2;