From: Jan Kratochvil Date: Thu, 7 Nov 2013 20:30:17 +0000 (+0100) Subject: dwfl_core_file_report: Remove the use of MAX. X-Git-Tag: elfutils-0.158~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22f867adcc1258aeb88560fa8591ef071353bb22;p=thirdparty%2Felfutils.git dwfl_core_file_report: Remove the use of MAX. Signed-off-by: Jan Kratochvil --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 2355cc5b7..dc5992104 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,7 @@ +2013-11-07 Jan Kratochvil + + * core-file.c (dwfl_core_file_report): Remove the use of MAX. + 2013-11-07 Jan Kratochvil * core-file.c (dwfl_core_file_report): Replaced variable sniffed by diff --git a/libdwfl/core-file.c b/libdwfl/core-file.c index 72a44f86c..4f6698342 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. */