diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2006-03-25 19:06:37 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2006-03-25 19:06:37 +0000 |
commit | d8a821c355d46341b63e7349a1fae44ce8dd61ee (patch) | |
tree | 3b62c3a634a8954407d49e7b7151f50065e41f57 /usr.bin/gprof/pmax.c | |
parent | adcff54e7a7c71a7ee978b2f639508683e35259b (diff) |
add missing prototypes all over the place, u_long -> unsigned long (userland
code).
okay kettenis@, comments by ray@
Diffstat (limited to 'usr.bin/gprof/pmax.c')
-rw-r--r-- | usr.bin/gprof/pmax.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/gprof/pmax.c b/usr.bin/gprof/pmax.c index 6702728bc4a..6b64094270d 100644 --- a/usr.bin/gprof/pmax.c +++ b/usr.bin/gprof/pmax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmax.c,v 1.5 2003/06/03 02:56:08 millert Exp $ */ +/* $OpenBSD: pmax.c,v 1.6 2006/03/25 19:06:36 espie Exp $ */ /* $NetBSD: pmax.c,v 1.3 1995/04/19 07:16:18 cgd Exp $ */ /* @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)mips.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: pmax.c,v 1.5 2003/06/03 02:56:08 millert Exp $"; +static char rcsid[] = "$OpenBSD: pmax.c,v 1.6 2006/03/25 19:06:36 espie Exp $"; #endif #endif /* not lint */ @@ -74,12 +74,9 @@ nltype indirectchild = { }; void -findcall(parentp, p_lowpc, p_highpc) - nltype *parentp; - unsigned long p_lowpc; - unsigned long p_highpc; +findcall(nltype *parentp, unsigned long p_lowpc, unsigned long p_highpc) { - u_long pc; + unsigned long pc; nltype *childp; unsigned long destpc; long op; @@ -94,7 +91,7 @@ findcall(parentp, p_lowpc, p_highpc) for (pc = p_lowpc; pc < p_highpc; pc += 4) { off = pc - s_lowpc; - op = *(u_long *)&textspace[off]; + op = *(unsigned long *)&textspace[off]; if ((op & 0xfc000000) == 0x0c000000) { /* * a jal insn -- check that this |