summaryrefslogtreecommitdiffstats
path: root/src/expr/flow_offload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/flow_offload.c')
-rw-r--r--src/expr/flow_offload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/flow_offload.c b/src/expr/flow_offload.c
index 1882691..a826202 100644
--- a/src/expr/flow_offload.c
+++ b/src/expr/flow_offload.c
@@ -92,11 +92,11 @@ static int nftnl_expr_flow_parse(struct nftnl_expr *e, struct nlattr *attr)
return ret;
}
-static int nftnl_expr_flow_snprintf(char *buf, size_t size,
+static int nftnl_expr_flow_snprintf(char *buf, size_t remain,
uint32_t flags, const struct nftnl_expr *e)
{
- int remain = size, offset = 0, ret;
struct nftnl_expr_flow *l = nftnl_expr_data(e);
+ int offset = 0, ret;
ret = snprintf(buf, remain, "flowtable %s ", l->table_name);
SNPRINTF_BUFFER_SIZE(ret, remain, offset);