]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwfl_core_file_report: Remove the use of MAX.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 7 Nov 2013 20:30:17 +0000 (21:30 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 7 Nov 2013 20:30:17 +0000 (21:30 +0100)
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
libdwfl/ChangeLog
libdwfl/core-file.c

index 2355cc5b71a1f065c0719eaab8a94c816f092b35..dc59921043c575f8e30fccb9c27db046587ac91e 100644 (file)
@@ -1,3 +1,7 @@
+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
index 72a44f86c255814a5e6f8ab4ed55da4913f0a51f..4f6698342896bc7466175b5fe08f197888907846 100644 (file)
@@ -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.  */