]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Whitespace, coding style
authorPetr Machata <pmachata@redhat.com>
Mon, 30 Nov 2009 13:03:23 +0000 (14:03 +0100)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:15 +0000 (14:55 +0200)
src/dwarflint/low.c

index 04ac6e1b763cb8a4063da48ab9d047984c811fee..f58d6ce54bd92be2601f50a4224889c5afbe043b 100644 (file)
@@ -342,7 +342,7 @@ check_aranges_structural (struct elf_file *file,
                        range_fmt (buf, sizeof buf, begin, begin + length));
          }
 
-       coverage_add (aranges_coverage, begin, length);
+       coverage_add (aranges_coverage, begin, length);
       }
 
       /* Size.  */
@@ -475,12 +475,12 @@ check_aranges_structural (struct elf_file *file,
       while (!read_ctx_eof (&sub_ctx))
        {
          /* We would like to report aranges the same way that readelf
-            does.  But readelf uses index of the arange in the array
-            as returned by dwarf_getaranges, which sorts the aranges
-            beforehand.  We don't want to disturb the memory this
-            way, the better to catch structural errors accurately.
-            So report arange offset instead.  If this becomes a
-            problem, we will achieve this by two-pass analysis.  */
+            does.  But readelf uses index of the arange in the array
+            as returned by dwarf_getaranges, which sorts the aranges
+            beforehand.  We don't want to disturb the memory this
+            way, the better to catch structural errors accurately.
+            So report arange offset instead.  If this becomes a
+            problem, we will achieve this by two-pass analysis.  */
          where_reset_2 (&where, read_ctx_get_offset (&sub_ctx));
 
          /* Record address.  */
@@ -494,7 +494,7 @@ check_aranges_structural (struct elf_file *file,
              goto next;
            }
 
-         if ((rel = relocation_next (&sec->rel, ctx_offset,
+         if ((rel = relocation_next (&sec->rel, ctx_offset,
                                      &where, skip_mismatched)))
            {
              address_relocated = true;
@@ -523,7 +523,7 @@ check_aranges_structural (struct elf_file *file,
               followed by the _non-zero_ length of that range.  */
            wr_error (&where, ": zero-length address range.\n");
          /* Skip coverage analysis if we have errors.  */
-         else if (retval && aranges_coverage)
+         else if (retval && aranges_coverage != NULL)
            aranges_coverage_add (address, length);
        }