summaryrefslogtreecommitdiff
path: root/gprof/hist.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-10 08:53:17 +0930
committerAlan Modra <amodra@gmail.com>2022-05-10 11:21:37 +0930
commite3154ef69c94705fd8d97f32a754a1080531b804 (patch)
treeac9983de6f7556cf89c94f1b5843e496ee6aaa36 /gprof/hist.c
parent2ec4ffc1c6ce5659549a03ba5728df6811922bf9 (diff)
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/hist.c')
-rw-r--r--gprof/hist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/hist.c b/gprof/hist.c
index 141a962865f..91a0d32a7a1 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -39,7 +39,7 @@
static void scale_and_align_entries (void);
static void print_header (int);
static void print_line (Sym *, double);
-static int cmp_time (const PTR, const PTR);
+static int cmp_time (const void *, const void *);
/* Declarations of automatically generated functions to output blurbs. */
extern void flat_blurb (FILE * fp);
@@ -535,7 +535,7 @@ print_line (Sym *sym, double scale)
lexicographic order of the function names. */
static int
-cmp_time (const PTR lp, const PTR rp)
+cmp_time (const void *lp, const void *rp)
{
const Sym *left = *(const Sym **) lp;
const Sym *right = *(const Sym **) rp;