Skip to content

Commit 4af7d3d

Browse files
the8472Thomasdezeeuw
authored andcommitted
fix getsockopt generic argument in notsent_lowat
1 parent a0810cd commit 4af7d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ impl crate::Socket {
18151815
#[cfg(all(feature = "all", any(target_os = "android", target_os = "linux")))]
18161816
pub fn tcp_notsent_lowat(&self) -> io::Result<u32> {
18171817
unsafe {
1818-
getsockopt::<Bool>(self.as_raw(), libc::IPPROTO_TCP, libc::TCP_NOTSENT_LOWAT)
1818+
getsockopt::<c_int>(self.as_raw(), libc::IPPROTO_TCP, libc::TCP_NOTSENT_LOWAT)
18191819
.map(|lowat| lowat as u32)
18201820
}
18211821
}

0 commit comments

Comments
 (0)