From: Jan Kratochvil Date: Wed, 17 Oct 2012 20:04:24 +0000 (+0200) Subject: libdwfl/ X-Git-Tag: elfutils-0.156~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50f413ee377f3e3987b89f9726ba493a2038e9a2;p=thirdparty%2Felfutils.git libdwfl/ 2012-10-17 Jan Kratochvil * libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__. Signed-off-by: Jan Kratochvil --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 189d3b717..638a09661 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,7 @@ +2012-10-17 Jan Kratochvil + + * libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__. + 2012-10-10 Jan Kratochvil * dwfl_segment_report_module.c (dwfl_segment_report_module): diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index 506a2a02d..000d582f5 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -403,7 +403,8 @@ extern int dwfl_validate_address (Dwfl *dwfl, are found) for use with libelf. If successful, fills in *BIAS with the difference between addresses within the loaded module and those in symbol tables or Dwarf information referring to it. */ -extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias); +extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias) + __nonnull_attribute__ (1, 2); /* Return the number of symbols in the module's symbol table, or -1 for errors. */