From 020a53391fb9c86390b802892a3b7486d09b1b2c Mon Sep 17 00:00:00 2001 From: Ana Rey Date: Wed, 4 Jun 2014 13:38:10 +0200 Subject: expr: reject: Convert the type of a variable Convert the type of a variable from uint16_t to uint8_t. Signed-off-by: Ana Rey Signed-off-by: Pablo Neira Ayuso --- src/expr/reject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expr/reject.c b/src/expr/reject.c index 3a76048..8b688ec 100644 --- a/src/expr/reject.c +++ b/src/expr/reject.c @@ -127,7 +127,7 @@ nft_rule_expr_reject_json_parse(struct nft_rule_expr *e, json_t *root, { #ifdef JSON_PARSING uint32_t type; - uint16_t code; + uint8_t code; if (nft_jansson_parse_val(root, "type", NFT_TYPE_U32, &type, err) < 0) return -1; -- cgit v1.2.3