Skip to content

Commit 4a8fa6f

Browse files
committed
Correct value of some NFT_ constants on AArch64
1 parent bdb1816 commit 4a8fa6f

File tree

1 file changed

+1
-6
lines changed
  • src/unix/notbsd/linux/other

1 file changed

+1
-6
lines changed

src/unix/notbsd/linux/other/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,7 @@ pub const NFPROTO_NETDEV: ::c_int = 5;
689689

690690
// linux/netfilter/nf_tables.h
691691
cfg_if!{
692-
if #[cfg(target_arch = "aarch64")] {
693-
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32;
694-
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
695-
pub const NFT_SET_MAXNAMELEN: ::c_int = 32;
696-
pub const NFT_OBJ_MAXNAMELEN: ::c_int = 32;
697-
} else if #[cfg(target_arch = "sparc64")] {
692+
if #[cfg(target_arch = "sparc64")] {
698693
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32;
699694
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
700695
pub const NFT_SET_MAXNAMELEN: ::c_int = 32;

0 commit comments

Comments
 (0)