Skip to content

Commit

Permalink
fix: usage of legacy numerical constant
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal authored and faern committed Jul 18, 2024
1 parent e51fe76 commit 80aeff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nftnl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,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 {
u32::from(::std::u16::MAX) + unsafe { libc::sysconf(libc::_SC_PAGESIZE) } as u32
u32::from(u16::MAX) + unsafe { libc::sysconf(libc::_SC_PAGESIZE) } as u32
}

0 comments on commit 80aeff7

Please sign in to comment.