diff options
Diffstat (limited to 'src/expr/fib.c')
-rw-r--r-- | src/expr/fib.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/expr/fib.c b/src/expr/fib.c index 9475af4..b0cbb3b 100644 --- a/src/expr/fib.c +++ b/src/expr/fib.c @@ -143,8 +143,8 @@ static const char *fib_type_str(enum nft_fib_result r) } static int -nftnl_expr_fib_snprintf_default(char *buf, size_t size, - const struct nftnl_expr *e) +nftnl_expr_fib_snprintf(char *buf, size_t size, + uint32_t printflags, const struct nftnl_expr *e) { struct nftnl_expr_fib *fib = nftnl_expr_data(e); int remain = size, offset = 0, ret, i; @@ -190,21 +190,6 @@ nftnl_expr_fib_snprintf_default(char *buf, size_t size, return offset; } -static int -nftnl_expr_fib_snprintf(char *buf, size_t len, uint32_t type, - uint32_t flags, const struct nftnl_expr *e) -{ - switch (type) { - case NFTNL_OUTPUT_DEFAULT: - return nftnl_expr_fib_snprintf_default(buf, len, e); - case NFTNL_OUTPUT_XML: - case NFTNL_OUTPUT_JSON: - default: - break; - } - return -1; -} - struct expr_ops expr_ops_fib = { .name = "fib", .alloc_len = sizeof(struct nftnl_expr_fib), |