diff options
Diffstat (limited to 'usr.sbin/pmcstat/pmcpl_callgraph.c')
-rw-r--r-- | usr.sbin/pmcstat/pmcpl_callgraph.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_callgraph.c b/usr.sbin/pmcstat/pmcpl_callgraph.c index 33998b51baac..b461388e928e 100644 --- a/usr.sbin/pmcstat/pmcpl_callgraph.c +++ b/usr.sbin/pmcstat/pmcpl_callgraph.c @@ -73,6 +73,9 @@ __FBSDID("$FreeBSD$"); #include "pmcstat_top.h" #include "pmcpl_callgraph.h" +#define min(A,B) ((A) < (B) ? (A) : (B)) +#define max(A,B) ((A) > (B) ? (A) : (B)) + /* Get the sample value in percent related to nsamples. */ #define PMCPL_CG_COUNTP(a) \ ((a)->pcg_count * 100.0 / nsamples) @@ -638,8 +641,11 @@ pmcpl_cg_topdisplay(void) */ int -pmcpl_cg_topkeypress(int c, WINDOW *w) +pmcpl_cg_topkeypress(int c, void *arg) { + WINDOW *w; + + w = (WINDOW *)arg; (void) c; (void) w; |