summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-09-27 21:51:15 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-09-28 00:40:47 +0200
commita61f9f66f60f865f65be03374dc0277cce4f490a (patch)
tree556c7f703c5d847a6729833318a741eb5cf1d7e4 /include
parent223a2098c29b15caaa4540ece923ae63da9f98c0 (diff)
include: include <string.h> in <nft.h>
<string.h> provides strcmp(), as such it's very basic and used everywhere. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/cache.h2
-rw-r--r--include/nft.h1
-rw-r--r--include/rule.h1
3 files changed, 1 insertions, 3 deletions
diff --git a/include/cache.h b/include/cache.h
index e66b0af5..8ca4a9a7 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -1,8 +1,6 @@
#ifndef _NFT_CACHE_H_
#define _NFT_CACHE_H_
-#include <string.h>
-
#include <list.h>
struct handle;
diff --git a/include/nft.h b/include/nft.h
index 9384054c..3c894e5b 100644
--- a/include/nft.h
+++ b/include/nft.h
@@ -7,5 +7,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
#endif /* NFTABLES_NFT_H */
diff --git a/include/rule.h b/include/rule.h
index 5ceb3ae6..6236d292 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -6,7 +6,6 @@
#include <netinet/in.h>
#include <libnftnl/object.h> /* For NFTNL_CTTIMEOUT_ARRAY_MAX. */
#include <linux/netfilter/nf_tables.h>
-#include <string.h>
#include <cache.h>
/**