]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: fix tiny errno / typed_errno confusion
authorNick Alcock <nick.alcock@oracle.com>
Wed, 5 Nov 2025 15:22:03 +0000 (15:22 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 9 Dec 2025 13:02:30 +0000 (13:02 +0000)
libctf/
* ctf-create.c (ctf_add_type): Use ctf_set_typed_errno.

libctf/ctf-create.c

index a03e93cb32c8bffd39c5f87111625f5101096a7c..d7f53cb5578e32dbbb0b05c82a84cc75d47046ff 100644 (file)
@@ -2891,7 +2891,7 @@ ctf_add_type (ctf_dict_t *dst_fp, ctf_dict_t *src_fp, ctf_id_t src_type)
   if ((src_fp->ctf_flags & LCTF_NO_STR) || (dst_fp->ctf_flags & LCTF_NO_STR)
       || ((src_fp->ctf_flags & LCTF_CHILD) && (src_fp->ctf_parent == NULL))
       || ((dst_fp->ctf_flags & LCTF_CHILD) && (dst_fp->ctf_parent == NULL)))
-    return (ctf_set_errno (dst_fp, ECTF_NOPARENT));
+    return (ctf_set_typed_errno (dst_fp, ECTF_NOPARENT));
 
   if (!src_fp->ctf_add_processing)
     src_fp->ctf_add_processing = ctf_dynhash_create (ctf_hash_integer,