diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-11-07 21:30:17 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-11-07 21:30:17 +0100 |
commit | 22f867adcc1258aeb88560fa8591ef071353bb22 (patch) | |
tree | 28d912adfdaef5ba41f0b2054b87b96caa663fc0 | |
parent | b947ee100ac604a2f6877a790b57bdf80e4123d5 (diff) | |
download | elfutils-22f867adcc1258aeb88560fa8591ef071353bb22.tar.gz |
dwfl_core_file_report: Remove the use of MAX.
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
-rw-r--r-- | libdwfl/ChangeLog | 4 | ||||
-rw-r--r-- | libdwfl/core-file.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 2355cc5b..dc599210 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,5 +1,9 @@ 2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com> + * core-file.c (dwfl_core_file_report): Remove the use of MAX. + +2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com> + * core-file.c (dwfl_core_file_report): Replaced variable sniffed by retval. Fix one forgotten LISTED increase. diff --git a/libdwfl/core-file.c b/libdwfl/core-file.c index 72a44f86..4f669834 100644 --- a/libdwfl/core-file.c +++ b/libdwfl/core-file.c @@ -486,7 +486,7 @@ dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable) int retval = dwfl_link_map_report (dwfl, auxv, auxv_size, dwfl_elf_phdr_memory_callback, elf, &r_debug_info); - int listed = MAX (0, retval); + int listed = retval > 0 ? retval : 0; /* Now sniff segment contents for modules hinted by information gathered from DT_DEBUG. */ |