]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Add some more nonnull attributes.
authorUlrich Drepper <drepper@redhat.com>
Mon, 22 May 2006 01:30:56 +0000 (01:30 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 22 May 2006 01:30:56 +0000 (01:30 +0000)
libdw/ChangeLog
libdw/libdw.h

index ac421ce01f55794074afaeee889c6031737b18c5..d904e42457d0e904444ca1511c311506bc80ea1b 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-21  Ulrich Drepper  <drepper@redhat.com>
+
+       * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
+       dwarf_haschildren.
+
 2006-02-28  Roland McGrath  <roland@redhat.com>
 
        * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
index f3ab3ae5a1f5da8ae0fb6c558d448c567490bd1f..351aef26ec6b868accbee7b6ef524d20631aac0f 100644 (file)
@@ -237,22 +237,23 @@ extern Dwarf_Die *dwarf_addrdie (Dwarf *dbg, Dwarf_Addr addr,
 
 /* Return child of current DIE.  */
 extern int dwarf_child (Dwarf_Die *die, Dwarf_Die *result)
-     __nonnull_attribute__ (2);
+     __nonnull_attribute__ (1, 2);
 
 /* Return sibling of given DIE.  */
 extern int dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result)
      __nonnull_attribute__ (2);
 
 /* Check whether the DIE has children.  */
-extern int dwarf_haschildren (Dwarf_Die *die);
+extern int dwarf_haschildren (Dwarf_Die *die) __nonnull_attribute__ (1);
 
 /* Get attributes of the DIE.  */
 extern ptrdiff_t dwarf_getattrs (Dwarf_Die *die,
                                 int (*callback) (Dwarf_Attribute *, void *),
-                                void *arg, ptrdiff_t offset);
+                                void *arg, ptrdiff_t offset)
+     __nonnull_attribute__ (2);
 
 /* Return tag of given DIE.  */
-extern int dwarf_tag (Dwarf_Die *die);
+extern int dwarf_tag (Dwarf_Die *die) __nonnull_attribute__ (1);
 
 
 /* Return specific attribute of DIE.  */