From d563c93815feb6c92fb4247f2d4f2b1626cf126d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 25 Aug 2023 13:36:33 +0200 Subject: include: include via There is a minimum base that all our sources will end up needing. This is what provides. Add and there. It's unlikely that we want to implement anything, without having "bool" and "uint32_t" types available. Yes, this means the internal headers are not self-contained, with respect to what provides. This is the exception to the rule, and our internal headers should rely to have included for them. They should not include themselves, because needs always be included as first. So when an internal header would include it would be unnecessary, because the header is *always* included already. Signed-off-by: Thomas Haller Signed-off-by: Pablo Neira Ayuso --- include/datatype.h | 1 - include/dccpopt.h | 1 - include/expression.h | 1 - include/nft.h | 3 +++ include/nftables.h | 1 - include/rule.h | 1 - include/utils.h | 2 -- 7 files changed, 3 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/datatype.h b/include/datatype.h index be5c6d1b..9ce7359c 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -1,7 +1,6 @@ #ifndef NFTABLES_DATATYPE_H #define NFTABLES_DATATYPE_H -#include #include /** diff --git a/include/dccpopt.h b/include/dccpopt.h index 9686932d..3617fc1a 100644 --- a/include/dccpopt.h +++ b/include/dccpopt.h @@ -2,7 +2,6 @@ #define NFTABLES_DCCPOPT_H #include -#include #define DCCPOPT_TYPE_MIN 0 #define DCCPOPT_TYPE_MAX UINT8_MAX diff --git a/include/expression.h b/include/expression.h index 1f58a68c..733dd3cf 100644 --- a/include/expression.h +++ b/include/expression.h @@ -1,7 +1,6 @@ #ifndef NFTABLES_EXPRESSION_H #define NFTABLES_EXPRESSION_H -#include #include #include diff --git a/include/nft.h b/include/nft.h index 0fd481c6..967eb7bc 100644 --- a/include/nft.h +++ b/include/nft.h @@ -4,4 +4,7 @@ #include +#include +#include + #endif /* NFTABLES_NFT_H */ diff --git a/include/nftables.h b/include/nftables.h index f073fa95..219a1010 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -1,7 +1,6 @@ #ifndef NFTABLES_NFTABLES_H #define NFTABLES_NFTABLES_H -#include #include #include #include diff --git a/include/rule.h b/include/rule.h index 13ab1bf3..8e876d0a 100644 --- a/include/rule.h +++ b/include/rule.h @@ -1,7 +1,6 @@ #ifndef NFTABLES_RULE_H #define NFTABLES_RULE_H -#include #include #include #include diff --git a/include/utils.h b/include/utils.h index 6764f921..cee1e5c1 100644 --- a/include/utils.h +++ b/include/utils.h @@ -2,8 +2,6 @@ #define NFTABLES_UTILS_H #include -#include -#include #include #include #include -- cgit v1.2.3