diff options
author | Phil Sutter <phil@nwl.cc> | 2021-03-09 11:36:03 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-03-15 12:23:15 +0100 |
commit | 483050de7ceb60515541a7e83d07b8fdb7a2faf5 (patch) | |
tree | 66a2b7eb17e924686faa756ddc4b06fa6aa351b3 /src/expr/range.c | |
parent | f4ad4d3879cead150e86c279ac8e4770e4b167b1 (diff) |
expr/data_reg: Drop output_format parameter
The function nftnl_data_reg_snprintf is exclusively called with
NFTNL_OUTPUT_DEFAULT as parameter, others are not supported - just drop
it.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/expr/range.c')
-rw-r--r-- | src/expr/range.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/range.c b/src/expr/range.c index a93b2ea..eed4882 100644 --- a/src/expr/range.c +++ b/src/expr/range.c @@ -195,11 +195,11 @@ static int nftnl_expr_range_snprintf(char *buf, size_t size, SNPRINTF_BUFFER_SIZE(ret, remain, offset); ret = nftnl_data_reg_snprintf(buf + offset, remain, &range->data_from, - NFTNL_OUTPUT_DEFAULT, 0, DATA_VALUE); + 0, DATA_VALUE); SNPRINTF_BUFFER_SIZE(ret, remain, offset); ret = nftnl_data_reg_snprintf(buf + offset, remain, &range->data_to, - NFTNL_OUTPUT_DEFAULT, 0, DATA_VALUE); + 0, DATA_VALUE); SNPRINTF_BUFFER_SIZE(ret, remain, offset); return offset; |