diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2025-04-25 11:43:26 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2025-04-25 18:07:43 +0100 |
commit | 1ece8c93c03eb38f4658d202817e3f7e3fc81e6a (patch) | |
tree | f5c16fffe9d7a02d92c5821b506fee07c390b071 /libctf | |
parent | 83e9ca77b2f3fba5f71c2a1490819f198adc06a8 (diff) | |
download | binutils-1ece8c93c03eb38f4658d202817e3f7e3fc81e6a.zip binutils-1ece8c93c03eb38f4658d202817e3f7e3fc81e6a.tar.gz binutils-1ece8c93c03eb38f4658d202817e3f7e3fc81e6a.tar.bz2 |
libctf, create: the unknown type
Just as for typedefs, this is just catching up with API changes on the
type-addition side.
Diffstat (limited to 'libctf')
-rw-r--r-- | libctf/ctf-create.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c index 11b27f0..b9859c5 100644 --- a/libctf/ctf-create.c +++ b/libctf/ctf-create.c @@ -1428,13 +1428,14 @@ ctf_add_unknown (ctf_dict_t *fp, uint32_t flag, const char *name) } } - if ((type = ctf_add_generic (fp, flag, name, CTF_K_UNKNOWN, 0, &dtd)) == CTF_ERR) + if ((dtd = ctf_add_generic (fp, flag, name, CTF_K_UNKNOWN, 0, 0, 0, + NULL)) == NULL) return CTF_ERR; /* errno is set for us. */ - dtd->dtd_data.ctt_info = CTF_TYPE_INFO (CTF_K_UNKNOWN, flag, 0); - dtd->dtd_data.ctt_type = 0; + dtd->dtd_data->ctt_info = CTF_TYPE_INFO (CTF_K_UNKNOWN, flag, 0); + dtd->dtd_data->ctt_type = 0; - return type; + return dtd->dtd_type; } ctf_id_t |