summaryrefslogtreecommitdiff
path: root/usr.bin/gprof/gprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gprof/gprof.c')
-rw-r--r--usr.bin/gprof/gprof.c33
1 files changed, 12 insertions, 21 deletions
diff --git a/usr.bin/gprof/gprof.c b/usr.bin/gprof/gprof.c
index 42c9f2569c6..1b9f564a0c6 100644
--- a/usr.bin/gprof/gprof.c
+++ b/usr.bin/gprof/gprof.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gprof.c,v 1.12 2003/06/03 02:56:08 millert Exp $ */
+/* $OpenBSD: gprof.c,v 1.13 2003/06/10 22:20:47 deraadt Exp $ */
/* $NetBSD: gprof.c,v 1.8 1995/04/19 07:15:59 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)gprof.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: gprof.c,v 1.12 2003/06/03 02:56:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: gprof.c,v 1.13 2003/06/10 22:20:47 deraadt Exp $";
#endif
#endif /* not lint */
@@ -52,9 +52,7 @@ static struct gmonhdr gmonhdr;
extern char *__progname;
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
char **sp;
nltype **timesortnlp;
@@ -215,8 +213,7 @@ main(argc, argv)
* and the arcs.
*/
void
-getpfile(filename)
- char *filename;
+getpfile(char *filename)
{
FILE *pfile;
FILE *openpfile();
@@ -244,8 +241,7 @@ getpfile(filename)
}
FILE *
-openpfile(filename)
- char *filename;
+openpfile(char *filename)
{
struct gmonhdr tmp;
FILE *pfile;
@@ -296,8 +292,7 @@ openpfile(filename)
}
void
-tally( rawp )
- struct rawarc *rawp;
+tally(struct rawarc *rawp)
{
nltype *parentp;
nltype *childp;
@@ -325,8 +320,7 @@ tally( rawp )
* dump out the gmon.sum file
*/
void
-dumpsum( sumfile )
- char *sumfile;
+dumpsum(char *sumfile)
{
nltype *nlp;
arctype *arcp;
@@ -382,8 +376,7 @@ valcmp(const void *vp1, const void *vp2)
}
void
-readsamples(pfile)
- FILE *pfile;
+readsamples(FILE *pfile)
{
UNIT sample;
int i;
@@ -436,7 +429,7 @@ readsamples(pfile)
* have any overlap (the two end cases, above).
*/
void
-asgnsamples()
+asgnsamples(void)
{
int j;
UNIT ccnt;
@@ -502,8 +495,7 @@ asgnsamples()
unsigned long
-min(a, b)
- unsigned long a,b;
+min(unsigned long a, unsigned long b)
{
if (a<b)
return(a);
@@ -511,8 +503,7 @@ min(a, b)
}
unsigned long
-max(a, b)
- unsigned long a,b;
+max(unsigned long a, unsigned long b)
{
if (a>b)
return(a);
@@ -526,7 +517,7 @@ max(a, b)
* for a routine is in the next bucket.
*/
void
-alignentries()
+alignentries(void)
{
struct nl *nlp;
unsigned long bucket_of_entry;