aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pmcstat/pmcpl_calltree.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pmcstat/pmcpl_calltree.c')
-rw-r--r--usr.sbin/pmcstat/pmcpl_calltree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_calltree.c b/usr.sbin/pmcstat/pmcpl_calltree.c
index 0f95ac172668..be03f3e8bc00 100644
--- a/usr.sbin/pmcstat/pmcpl_calltree.c
+++ b/usr.sbin/pmcstat/pmcpl_calltree.c
@@ -58,6 +58,9 @@ __FBSDID("$FreeBSD$");
#include "pmcstat_top.h"
#include "pmcpl_calltree.h"
+#define min(A,B) ((A) < (B) ? (A) : (B))
+#define max(A,B) ((A) > (B) ? (A) : (B))
+
#define PMCPL_CT_GROWSIZE 4
static int pmcstat_skiplink = 0;
@@ -581,8 +584,11 @@ pmcpl_ct_topdisplay(void)
*/
int
-pmcpl_ct_topkeypress(int c, WINDOW *w)
+pmcpl_ct_topkeypress(int c, void *arg)
{
+ WINDOW *w;
+
+ w = (WINDOW *)arg;
switch (c) {
case 'f':