[libnftnl PATCH 4/5] expr: reject: Convert the type of a variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Convert the type of a variable from uint16_t to uint8_t.

Signed-off-by: Ana Rey <anarey@xxxxxxxxx>
---
 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 5aa555a..8fc99af 100644
--- a/src/expr/reject.c
+++ b/src/expr/reject.c
@@ -128,7 +128,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;
-- 
2.0.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux