summaryrefslogtreecommitdiffstats
path: root/src/gmputil.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/gmputil.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/gmputil.c')
-rw-r--r--src/gmputil.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gmputil.c b/src/gmputil.c
index 9cda1853..7f65630d 100644
--- a/src/gmputil.c
+++ b/src/gmputil.c
@@ -11,7 +11,6 @@
#include <nft.h>
#include <stddef.h>
-#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>