summaryrefslogtreecommitdiffstats
path: root/usr.sbin/trpt/trpt.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-03-05 12:13:12 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-03-05 12:13:12 +0000
commit2678d2a75b0afb41732369e6c69a3f0a1445d99c (patch)
tree14298bfaa1f78ddc9a0044a05c1554c250613f38 /usr.sbin/trpt/trpt.c
parentf288bd1ab7b748fe4f9d2c884e9aeae85bc9dfc2 (diff)
downloadFreeBSD-src-2678d2a75b0afb41732369e6c69a3f0a1445d99c.zip
FreeBSD-src-2678d2a75b0afb41732369e6c69a3f0a1445d99c.tar.gz
Change types of "numeric" function to match that of a qsort comparison
function.
Diffstat (limited to 'usr.sbin/trpt/trpt.c')
-rw-r--r--usr.sbin/trpt/trpt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c
index 9258af7..aacd75d 100644
--- a/usr.sbin/trpt/trpt.c
+++ b/usr.sbin/trpt/trpt.c
@@ -98,7 +98,7 @@ static int aflag, kflag, memf, follow, sflag, tflag;
void dotrace __P((caddr_t));
void klseek __P((int, off_t, int));
-int numeric __P((caddr_t *, caddr_t *));
+int numeric __P((const void *, const void *));
void tcp_trace __P((short, short, struct tcpcb *, struct tcpcb *,
int, void *, struct tcphdr *, int));
static void usage __P((void));
@@ -460,9 +460,10 @@ tcp_trace(act, ostate, atp, tp, family, ip, th, req)
}
int
-numeric(c1, c2)
- caddr_t *c1, *c2;
+numeric(v1, v2)
+ const void *v1, *v2;
{
+ const caddr_t *c1 = v1, *c2 = v2;
return(*c1 - *c2);
}
OpenPOWER on IntegriCloud