aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/trpt
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-03-05 12:13:12 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-03-05 12:13:12 +0000
commit0d7dabf910b63bb550d579d5bd7abb8b5f1ef433 (patch)
tree4195aaf03de38901e1274a9fffb6be9404bf1af3 /usr.sbin/trpt
parentaa9ab917d7d0d359a0628a0de46d6948693bf933 (diff)
downloadsrc-0d7dabf910b63bb550d579d5bd7abb8b5f1ef433.tar.gz
src-0d7dabf910b63bb550d579d5bd7abb8b5f1ef433.zip
Change types of "numeric" function to match that of a qsort comparison
function.
Notes
Notes: svn path=/head/; revision=73732
Diffstat (limited to 'usr.sbin/trpt')
-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 9258af76df64..aacd75dade8b 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);
}