Skip to content

Commit

Permalink
ffi/Hostent: ignore unused variable error on addr_type
Browse files Browse the repository at this point in the history
We don't really use it for now, this is already encoded in the
addrlist. But let's keep this structure aligned with the glibc
counterpart.
  • Loading branch information
picnoir committed Aug 6, 2024
1 parent b68e835 commit 74343b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ mod glibcffi {
pub struct Hostent {
pub name: CString,
pub aliases: Vec<CString>,
#[allow(dead_code)]
pub addr_type: i32,
pub addr_list: Vec<std::net::IpAddr>,
pub herrno: i32,
Expand Down

0 comments on commit 74343b4

Please sign in to comment.