From 8202d0fb87c540717667bc73aab7461961973b65 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 14 Aug 2019 10:07:22 +0200 Subject: gmputil: assert length is non-zero Importing, exporting and byteswapping zero length data should not happen. Use macro definition so we know from where the assertion is triggered in the code for easier diagnosing in the future. When importing datatype.h from gmputil.h, it seems gcc complains on missing declarations in json.h. Signed-off-by: Pablo Neira Ayuso --- include/json.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/json.h') diff --git a/include/json.h b/include/json.h index 7f2df7c8..20d6c2a4 100644 --- a/include/json.h +++ b/include/json.h @@ -15,6 +15,10 @@ struct stmt; struct symbol_table; struct table; struct netlink_mon_handler; +struct nft_ctx; +struct location; +struct output_ctx; +struct list_head; #ifdef HAVE_LIBJANSSON -- cgit v1.2.3