]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Little clenaup.
authorUlrich Drepper <drepper@redhat.com>
Sun, 28 May 2006 20:28:19 +0000 (20:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 28 May 2006 20:28:19 +0000 (20:28 +0000)
src/ChangeLog
src/addr2line.c

index 9bb0bf8c38fa6b7c8e3b676ef648b326b814f32a..77f9867b83f6ef7d1d780d0cfca8206f01743904 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-28  Ulrich Drepper  <drepper@redhat.com>
+
+       * addr2line.c (print_dwarf_function): Use unsigned type for lineno
+       and colno.
+
 2006-05-27  Ulrich Drepper  <drepper@redhat.com>
 
        * readelf.c (handle_relocs_rela): Better notations for addon value.
index bc0ea803acb2bf1959c8bf9e9630a5c726d5c286..1729058e1aa925742ab23303452a9126800feb01 100644 (file)
@@ -258,7 +258,8 @@ print_dwarf_function (Dwfl_Module *mod, Dwarf_Addr addr)
                                               &attr_mem), &val) == 0)
                {
                  const char *file = dwarf_filesrc (files, val, NULL, NULL);
-                 int lineno = 0, colno = 0;
+                 unsigned int lineno = 0;
+                 unsigned int colno = 0;
                  if (dwarf_formudata (dwarf_attr (&scopes[i],
                                                   DW_AT_call_line,
                                                   &attr_mem), &val) == 0)