From 857a060fe3a415c1909ad8a342d9ca21019ab2fc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 13 Nov 2020 13:49:27 +0100 Subject: pkg/compiler: check for flags with all equal values There is no point in having flags when values are equal. This can only mean a typo or other bug. Check for such cases and fix 3 existing precedents. --- sys/linux/netfilter.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/linux') diff --git a/sys/linux/netfilter.txt b/sys/linux/netfilter.txt index a620f40e7..dc8655ec0 100644 --- a/sys/linux/netfilter.txt +++ b/sys/linux/netfilter.txt @@ -573,7 +573,7 @@ xt_ipcomp { hdrres const[0, int8] } -xt_ipcomp_flags = XT_IPCOMP_INV_SPI, XT_IPCOMP_INV_MASK +xt_ipcomp_flags = XT_IPCOMP_INV_SPI xt_statistic_info { mode bool16 @@ -768,7 +768,7 @@ xt_esp { invflags flags[xt_esp_flags, int8] } -xt_esp_flags = XT_ESP_INV_SPI, XT_ESP_INV_MASK +xt_esp_flags = XT_ESP_INV_SPI xt_cpu_info { cpu int32 -- cgit mrf-deployment