summaryrefslogtreecommitdiffstats
path: root/src/payload.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-09-08 19:34:47 +0200
committerFlorian Westphal <fw@strlen.de>2023-09-08 20:11:44 +0200
commitbd063341a552c5e79cffa26e8b7a06fcdbfcd96c (patch)
tree3c009a2c751db2cc1b17f8f41b922306a75d238a /src/payload.c
parent5722eda4eec170fe26bf274cb550c875f5b94a0c (diff)
datatype: rename "dtype_clone()" to datatype_clone()
The struct is called "datatype" and related functions have the fitting "datatype_" prefix. Rename. Also rename the internal "dtype_alloc()" to "datatype_alloc()". This is a follow up to commit 01a13882bb59 ('src: add reference counter for dynamic datatypes'), which started adding "datatype_*()" functions. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/payload.c')
-rw-r--r--src/payload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/payload.c b/src/payload.c
index 0afffb23..179ddcbd 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -251,7 +251,7 @@ static struct expr *payload_expr_parse_udata(const struct nftnl_udata *attr)
expr->payload.offset = offset;
expr->payload.is_raw = true;
expr->len = len;
- dtype = dtype_clone(&xinteger_type);
+ dtype = datatype_clone(&xinteger_type);
dtype->size = len;
dtype->byteorder = BYTEORDER_BIG_ENDIAN;
dtype->refcnt = 1;