Author: emaste
Date: Wed Apr 17 17:50:44 2019
New Revision: 346327
URL: https://svnweb.freebsd.org/changeset/base/346327

Log:
  readelf: use size_t for object counts
  
  PR:           212539
  Reported by:  cem
  Sponsored by: The FreeBSD Foundation

Modified:
  head/contrib/elftoolchain/readelf/readelf.c

Modified: head/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.c Wed Apr 17 17:19:54 2019        
(r346326)
+++ head/contrib/elftoolchain/readelf/readelf.c Wed Apr 17 17:50:44 2019        
(r346327)
@@ -370,7 +370,7 @@ static void readelf_usage(int status);
 static void readelf_version(void);
 static void search_loclist_at(struct readelf *re, Dwarf_Die die,
     Dwarf_Unsigned lowpc, struct loc_at **la_list,
-    unsigned int *la_list_len, unsigned int *la_list_cap);
+    size_t *la_list_len, size_t *la_list_cap);
 static void search_ver(struct readelf *re);
 static const char *section_type(unsigned int mach, unsigned int stype);
 static void set_cu_context(struct readelf *re, Dwarf_Half psize,
@@ -6063,8 +6063,7 @@ loc_at_comparator(const void *la1, const void *la2)
 
 static void
 search_loclist_at(struct readelf *re, Dwarf_Die die, Dwarf_Unsigned lowpc,
-    struct loc_at **la_list, unsigned int *la_list_len,
-    unsigned int *la_list_cap)
+    struct loc_at **la_list, size_t *la_list_len, size_t *la_list_cap)
 {
        struct loc_at *la;
        Dwarf_Attribute *attr_list;
@@ -6438,7 +6437,8 @@ dump_dwarf_loclist(struct readelf *re)
        Dwarf_Half tag, version, pointer_size, off_size;
        Dwarf_Error de;
        struct loc_at *la_list, *left, *right, *la;
-       unsigned int la_list_len, la_list_cap, duplicates, k;
+       size_t la_list_len, la_list_cap;
+       unsigned int duplicates, k;
        int i, j, ret, has_content;
 
        la_list_len = 0;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to