diff options
author | Thomas Haller <thaller@redhat.com> | 2023-09-08 19:34:47 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-09-08 20:11:44 +0200 |
commit | bd063341a552c5e79cffa26e8b7a06fcdbfcd96c (patch) | |
tree | 3c009a2c751db2cc1b17f8f41b922306a75d238a /src/evaluate.c | |
parent | 5722eda4eec170fe26bf274cb550c875f5b94a0c (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/evaluate.c')
-rw-r--r-- | src/evaluate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evaluate.c b/src/evaluate.c index 7e0c8260..922ce421 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -1519,7 +1519,7 @@ static int expr_evaluate_concat(struct eval_ctx *ctx, struct expr **expr) if (!key && i->dtype->type == TYPE_INTEGER) { struct datatype *clone; - clone = dtype_clone(i->dtype); + clone = datatype_clone(i->dtype); clone->size = i->len; clone->byteorder = i->byteorder; clone->refcnt = 1; @@ -4547,7 +4547,7 @@ static int set_expr_evaluate_concat(struct eval_ctx *ctx, struct expr **expr) i->dtype->type == TYPE_INTEGER) { struct datatype *dtype; - dtype = dtype_clone(i->dtype); + dtype = datatype_clone(i->dtype); dtype->size = i->len; dtype->byteorder = i->byteorder; dtype->refcnt = 1; |