diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-10 08:53:17 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-10 11:21:37 +0930 |
commit | e3154ef69c94705fd8d97f32a754a1080531b804 (patch) | |
tree | ac9983de6f7556cf89c94f1b5843e496ee6aaa36 /gprof/cg_print.c | |
parent | 2ec4ffc1c6ce5659549a03ba5728df6811922bf9 (diff) | |
download | gdb-e3154ef69c94705fd8d97f32a754a1080531b804.zip gdb-e3154ef69c94705fd8d97f32a754a1080531b804.tar.gz gdb-e3154ef69c94705fd8d97f32a754a1080531b804.tar.bz2 |
gprof: remove use of PTR
* basic_blocks.c: Replace uses of PTR with void * throughout.
* cg_arcs.c: Likewise.
* cg_print.c: Likewise.
* hist.c: Likewise.
* source.h: Likewise.
* symtab.c: Likewise.
Diffstat (limited to 'gprof/cg_print.c')
-rw-r--r-- | gprof/cg_print.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gprof/cg_print.c b/gprof/cg_print.c index ca71ba4..9ebe171 100644 --- a/gprof/cg_print.c +++ b/gprof/cg_print.c @@ -47,9 +47,9 @@ static void print_parents (Sym *); static void sort_children (Sym *); static void print_children (Sym *); static void print_line (Sym *); -static int cmp_name (const PTR, const PTR); -static int cmp_arc_count (const PTR, const PTR); -static int cmp_fun_nuses (const PTR, const PTR); +static int cmp_name (const void *, const void *); +static int cmp_arc_count (const void *, const void *); +static int cmp_fun_nuses (const void *, const void *); static void order_and_dump_functions_by_arcs (Arc **, unsigned long, int, Arc **, unsigned long *); @@ -551,7 +551,7 @@ cg_print (Sym ** timesortsym) static int -cmp_name (const PTR left, const PTR right) +cmp_name (const void *left, const void *right) { const Sym **npp1 = (const Sym **) left; const Sym **npp2 = (const Sym **) right; @@ -675,7 +675,7 @@ cg_print_index (void) We want to sort in descending order. */ static int -cmp_arc_count (const PTR left, const PTR right) +cmp_arc_count (const void *left, const void *right) { const Arc **npp1 = (const Arc **) left; const Arc **npp2 = (const Arc **) right; @@ -692,7 +692,7 @@ cmp_arc_count (const PTR left, const PTR right) We want to sort in descending order. */ static int -cmp_fun_nuses (const PTR left, const PTR right) +cmp_fun_nuses (const void *left, const void *right) { const Sym **npp1 = (const Sym **) left; const Sym **npp2 = (const Sym **) right; |