Skip to content

Commit

Permalink
dwarf: Use size_t data type for numbers
Browse files Browse the repository at this point in the history
Signed-off-by: Eunseon Lee <[email protected]>
  • Loading branch information
ekyooo committed Nov 7, 2022
1 parent 25c9578 commit 4c54375
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion misc/dbginfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

void print_debug_info(struct uftrace_dbg_info *dinfo, bool auto_args)
{
int i;
size_t i;
char *argspec = NULL;
char *retspec = NULL;

Expand Down
2 changes: 1 addition & 1 deletion utils/dwarf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ void save_debug_file(FILE *fp, char code, char *str, unsigned long val)
static void save_debug_entries(struct uftrace_dbg_info *dinfo, const char *dirname,
const char *filename, char *build_id)
{
int i;
size_t i;
FILE *fp;
int idx;
int len;
Expand Down
4 changes: 2 additions & 2 deletions utils/dwarf.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ struct uftrace_dbg_info {
/* array of location - same order as symbol */
struct uftrace_dbg_loc *locs;
/* number of debug location info */
int nr_locs;
size_t nr_locs;
/* number of actually used debug location info */
int nr_locs_used;
size_t nr_locs_used;
/* ELF file type - EXEC, REL, DYN */
int file_type;
/* whether it needs to parse argument info */
Expand Down

0 comments on commit 4c54375

Please sign in to comment.