From 7c7dcb2f2b86f71578c4cfc810042c98a43ea70a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 19 Sep 2013 20:46:42 +0200 Subject: nft: adapt nft_rule_expr_get to use uint32_t instead of size_t According to libnftables change 437d610, now the length obtained via getter function is uint32_t, not size_t anymore. Signed-off-by: Pablo Neira Ayuso --- iptables/nft-shared.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'iptables/nft-shared.c') diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index acf352d6..5c09fe1d 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -223,7 +223,7 @@ void parse_meta(struct nft_rule_expr *e, uint8_t key, char *iniface, { uint32_t value; const void *ifname; - size_t len; + uint32_t len; switch(key) { case NFT_META_IIF: @@ -285,7 +285,7 @@ void parse_meta(struct nft_rule_expr *e, uint8_t key, char *iniface, void nft_parse_target(struct nft_rule_expr *e, struct nft_rule_expr_iter *iter, int family, void *data) { - size_t tg_len; + uint32_t tg_len; const char *targname = nft_rule_expr_get_str(e, NFT_EXPR_TG_NAME); const void *targinfo = nft_rule_expr_get(e, NFT_EXPR_TG_INFO, &tg_len); struct xtables_target *target; @@ -316,7 +316,7 @@ static void nft_parse_match(struct nft_rule_expr *e, struct nft_rule_expr_iter *iter, struct iptables_command_state *cs) { - size_t mt_len; + uint32_t mt_len; const char *mt_name = nft_rule_expr_get_str(e, NFT_EXPR_MT_NAME); const void *mt_info = nft_rule_expr_get(e, NFT_EXPR_MT_INFO, &mt_len); struct xtables_match *match; @@ -360,7 +360,7 @@ void get_cmp_data(struct nft_rule_expr_iter *iter, { struct nft_rule_expr *e; const char *name; - size_t len; + uint32_t len; uint8_t op; e = nft_rule_expr_iter_next(iter); -- cgit v1.2.3