diff options
Diffstat (limited to 'src/expr/lookup.c')
-rw-r--r-- | src/expr/lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/lookup.c b/src/expr/lookup.c index ec7f6fb..83adce9 100644 --- a/src/expr/lookup.c +++ b/src/expr/lookup.c @@ -168,11 +168,11 @@ nftnl_expr_lookup_parse(struct nftnl_expr *e, struct nlattr *attr) } static int -nftnl_expr_lookup_snprintf(char *buf, size_t size, +nftnl_expr_lookup_snprintf(char *buf, size_t remain, uint32_t flags, const struct nftnl_expr *e) { - int remain = size, offset = 0, ret; struct nftnl_expr_lookup *l = nftnl_expr_data(e); + int offset = 0, ret; ret = snprintf(buf, remain, "reg %u set %s ", l->sreg, l->set_name); SNPRINTF_BUFFER_SIZE(ret, remain, offset); |