summaryrefslogtreecommitdiffstats
path: root/src/mnl.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-09-08 19:32:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-09-11 23:41:38 +0200
commit5b7d1fc6a9ad494801d481615a5af73f82753ac1 (patch)
tree60a3ad833bb8d9973b91bb229e6ec05a94aaecd5 /src/mnl.c
parent702f9905b616a8400eae1ae3ad88029e733a91b8 (diff)
include: include <stdlib.h> in <nft.h>
It provides malloc()/free(), which is so basic that we need it everywhere. Include via <nft.h>. The ultimate purpose is to define more things in <nft.h>. While it has not corresponding C sources, <nft.h> can contain macros and static inline functions, and is a good place for things that we shall have everywhere. Since <stdlib.h> provides malloc()/free() and size_t, that is a very basic dependency, that will be needed for that. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/mnl.c')
-rw-r--r--src/mnl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mnl.c b/src/mnl.c
index d583177d..67bb44a6 100644
--- a/src/mnl.c
+++ b/src/mnl.c
@@ -35,7 +35,6 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include <errno.h>
-#include <stdlib.h>
#include <utils.h>
#include <nftables.h>
#include <linux/netfilter.h>