From 80aeff78ef5b76349e678c18b43ce638039ec875 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Sat, 22 Jun 2024 12:22:18 -0700 Subject: [PATCH] fix: usage of legacy numerical constant --- nftnl/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nftnl/src/lib.rs b/nftnl/src/lib.rs index ec6458d..01e272d 100644 --- a/nftnl/src/lib.rs +++ b/nftnl/src/lib.rs @@ -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 }