This change fixes the following warnings: mnl.c: In function ‘mnl_nft_flowtable_add’: mnl.c:1442:14: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration] dev_array = calloc(len, sizeof(char *)); ^~~~~~ mnl.c:1442:14: warning: incompatible implicit declaration of built-in function ‘calloc’ mnl.c:1442:14: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’ mnl.c:1449:2: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] free(dev_array); ^~~~ mnl.c:1449:2: warning: incompatible implicit declaration of built-in function ‘free’ mnl.c:1449:2: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’ Signed-off-by: Michal Rostecki <mrostecki@xxxxxxxxxxxx> --- src/mnl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mnl.c b/src/mnl.c index fdba0af8..aa5b0b46 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -30,6 +30,7 @@ #include <arpa/inet.h> #include <fcntl.h> #include <errno.h> +#include <stdlib.h> #include <utils.h> #include <nftables.h> -- 2.16.4