diff options
Diffstat (limited to 'nftnl/src/lib.rs')
-rw-r--r-- | nftnl/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nftnl/src/lib.rs b/nftnl/src/lib.rs index 01751ad..96e0e26 100644 --- a/nftnl/src/lib.rs +++ b/nftnl/src/lib.rs @@ -75,5 +75,5 @@ pub unsafe trait NlMsg { /// length (nla_len) is 16 bits, the largest message is a bit larger than /// 64 KBytes. pub fn nft_nlmsg_maxsize() -> u32 { - ::std::u16::MAX as u32 + unsafe { libc::sysconf(libc::_SC_PAGESIZE) } as u32 + u32::from(::std::u16::MAX) + unsafe { libc::sysconf(libc::_SC_PAGESIZE) } as u32 } |