summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/dfn.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gprof/dfn.c')
-rw-r--r--usr.bin/gprof/dfn.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/usr.bin/gprof/dfn.c b/usr.bin/gprof/dfn.c
index 4f6eeac..a49cd31 100644
--- a/usr.bin/gprof/dfn.c
+++ b/usr.bin/gprof/dfn.c
@@ -52,7 +52,7 @@ int dfn_depth;
int dfn_counter;
void
-dfn_init()
+dfn_init(void)
{
dfn_depth = 0;
@@ -63,8 +63,7 @@ dfn_init()
* given this parent, depth first number its children.
*/
void
-dfn( parentp )
- nltype *parentp;
+dfn(nltype *parentp)
{
arctype *arcp;
@@ -110,8 +109,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;
@@ -133,8 +131,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 );
@@ -144,8 +141,7 @@ dfn_numbered( childp )
* are we already busy?
*/
bool
-dfn_busy( childp )
- nltype *childp;
+dfn_busy(nltype *childp)
{
if ( childp -> toporder == DFN_NAN ) {
@@ -158,8 +154,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;
OpenPOWER on IntegriCloud