Skip to content

Commit

Permalink
Convert addr family type just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Dec 2, 2024
1 parent afa5d68 commit 889ca75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quiche/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ fn optional_std_addr_from_c(
}

fn std_addr_from_c(addr: &sockaddr, addr_len: socklen_t) -> SocketAddr {
match addr.sa_family {
match addr.sa_family as _ {
AF_INET => {
assert!(addr_len as usize == std::mem::size_of::<sockaddr_in>());

Expand Down

0 comments on commit 889ca75

Please sign in to comment.