From 50f413ee377f3e3987b89f9726ba493a2038e9a2 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 17 Oct 2012 22:04:24 +0200 Subject: [PATCH] libdwfl/ 2012-10-17 Jan Kratochvil * libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__. Signed-off-by: Jan Kratochvil --- libdwfl/ChangeLog | 4 ++++ libdwfl/libdwfl.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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. */ -- 2.47.2