diff options
author | Thomas Haller <thaller@redhat.com> | 2023-09-08 19:32:20 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-11 23:41:38 +0200 |
commit | 5b7d1fc6a9ad494801d481615a5af73f82753ac1 (patch) | |
tree | 60a3ad833bb8d9973b91bb229e6ec05a94aaecd5 /src/payload.c | |
parent | 702f9905b616a8400eae1ae3ad88029e733a91b8 (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/payload.c')
-rw-r--r-- | src/payload.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/payload.c b/src/payload.c index 179ddcbd..dcd87485 100644 --- a/src/payload.c +++ b/src/payload.c @@ -13,7 +13,6 @@ #include <nft.h> #include <stddef.h> -#include <stdlib.h> #include <stdio.h> #include <string.h> #include <net/if_arp.h> |