summaryrefslogtreecommitdiff
path: root/usr.bin/gprof/dfn.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-03-25 19:06:37 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-03-25 19:06:37 +0000
commitd8a821c355d46341b63e7349a1fae44ce8dd61ee (patch)
tree3b62c3a634a8954407d49e7b7151f50065e41f57 /usr.bin/gprof/dfn.c
parentadcff54e7a7c71a7ee978b2f639508683e35259b (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/dfn.c')
-rw-r--r--usr.bin/gprof/dfn.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/usr.bin/gprof/dfn.c b/usr.bin/gprof/dfn.c
index a903c09db0b..7747ea350bb 100644
--- a/usr.bin/gprof/dfn.c
+++ b/usr.bin/gprof/dfn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dfn.c,v 1.5 2003/06/03 02:56:08 millert Exp $ */
+/* $OpenBSD: dfn.c,v 1.6 2006/03/25 19:06:35 espie Exp $ */
/* $NetBSD: dfn.c,v 1.5 1995/04/19 07:15:56 cgd Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dfn.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: dfn.c,v 1.5 2003/06/03 02:56:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: dfn.c,v 1.6 2006/03/25 19:06:35 espie Exp $";
#endif
#endif /* not lint */
@@ -65,8 +65,7 @@ dfn_init()
* given this parent, depth first number its children.
*/
void
-dfn( parentp )
- nltype *parentp;
+dfn(nltype *parentp)
{
arctype *arcp;
@@ -112,8 +111,7 @@ dfn( parentp )
* push a parent onto the stack and mark it busy
*/
void
-dfn_pre_visit( parentp )
- nltype *parentp;
+dfn_pre_visit(nltype *parentp)
{
dfn_depth += 1;
@@ -135,8 +133,7 @@ dfn_pre_visit( parentp )
* are we already numbered?
*/
bool
-dfn_numbered( childp )
- nltype *childp;
+dfn_numbered(nltype *childp)
{
return ( childp -> toporder != DFN_NAN && childp -> toporder != DFN_BUSY );
@@ -146,8 +143,7 @@ dfn_numbered( childp )
* are we already busy?
*/
bool
-dfn_busy( childp )
- nltype *childp;
+dfn_busy(nltype *childp)
{
if ( childp -> toporder == DFN_NAN ) {
@@ -160,8 +156,7 @@ dfn_busy( childp )
* MISSING: an explanation
*/
void
-dfn_findcycle( childp )
- nltype *childp;
+dfn_findcycle(nltype *childp)
{
int cycletop;
nltype *cycleheadp;
@@ -267,8 +262,7 @@ dfn_findcycle( childp )
* for lint: ARGSUSED
*/
void
-dfn_self_cycle( parentp )
- nltype *parentp;
+dfn_self_cycle(nltype *parentp)
{
/*
* since we are taking out self-cycles elsewhere
@@ -289,8 +283,7 @@ dfn_self_cycle( parentp )
* and pop it off the stack
*/
void
-dfn_post_visit( parentp )
- nltype *parentp;
+dfn_post_visit(nltype *parentp)
{
nltype *memberp;