summaryrefslogtreecommitdiffstats
path: root/src/object.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-03-09 12:01:19 +0100
committerPhil Sutter <phil@nwl.cc>2021-03-15 12:23:17 +0100
commit4f6e671b462180ba9af12bd30211811b5fca8cb1 (patch)
tree7ecc8024dc399b138757c7903686ec6ca5ff45bb /src/object.c
parent483050de7ceb60515541a7e83d07b8fdb7a2faf5 (diff)
obj: Drop type parameter from snprintf callback
Objects don't support any other output type than NFTNL_OUTPUT_DEFAULT, so just drop the parameter. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/object.c b/src/object.c
index 46e7916..2d15629 100644
--- a/src/object.c
+++ b/src/object.c
@@ -396,8 +396,7 @@ static int nftnl_obj_snprintf_dflt(char *buf, size_t size,
SNPRINTF_BUFFER_SIZE(ret, remain, offset);
if (obj->ops) {
- ret = obj->ops->snprintf(buf + offset, remain, type, flags,
- obj);
+ ret = obj->ops->snprintf(buf + offset, remain, flags, obj);
SNPRINTF_BUFFER_SIZE(ret, remain, offset);
}
ret = snprintf(buf + offset, remain, "]");