summaryrefslogtreecommitdiffstats
path: root/src/proto.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/proto.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/proto.c')
-rw-r--r--src/proto.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/proto.c b/src/proto.c
index d3bcb0c4..b5cb0106 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -12,7 +12,6 @@
#include <nft.h>
#include <stddef.h>
-#include <stdlib.h>
#include <string.h>
#include <net/if_arp.h>
#include <arpa/inet.h>