diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-14 10:07:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-14 15:17:24 +0200 |
commit | 8202d0fb87c540717667bc73aab7461961973b65 (patch) | |
tree | 6eb2bc7a017b1b0a9f5efc91a292e0a5d4b14c5a /include/json.h | |
parent | 877baf9538f66f8f238a3e278a1a994734382678 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'include/json.h')
-rw-r--r-- | include/json.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |