=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/gprof/gprof.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/gprof/gprof.c 2003/06/03 02:56:08 1.12 +++ src/usr.bin/gprof/gprof.c 2003/06/10 22:20:47 1.13 @@ -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 @@ #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 @@ extern char *__progname; int -main(argc, argv) - int argc; - char **argv; +main(int argc, char *argv[]) { char **sp; nltype **timesortnlp; @@ -215,8 +213,7 @@ * and the arcs. */ void -getpfile(filename) - char *filename; +getpfile(char *filename) { FILE *pfile; FILE *openpfile(); @@ -244,8 +241,7 @@ } FILE * -openpfile(filename) - char *filename; +openpfile(char *filename) { struct gmonhdr tmp; FILE *pfile; @@ -296,8 +292,7 @@ } void -tally( rawp ) - struct rawarc *rawp; +tally(struct rawarc *rawp) { nltype *parentp; nltype *childp; @@ -325,8 +320,7 @@ * dump out the gmon.sum file */ void -dumpsum( sumfile ) - char *sumfile; +dumpsum(char *sumfile) { nltype *nlp; arctype *arcp; @@ -382,8 +376,7 @@ } void -readsamples(pfile) - FILE *pfile; +readsamples(FILE *pfile) { UNIT sample; int i; @@ -436,7 +429,7 @@ * have any overlap (the two end cases, above). */ void -asgnsamples() +asgnsamples(void) { int j; UNIT ccnt; @@ -502,8 +495,7 @@ unsigned long -min(a, b) - unsigned long a,b; +min(unsigned long a, unsigned long b) { if (ab) return(a); @@ -526,7 +517,7 @@ * for a routine is in the next bucket. */ void -alignentries() +alignentries(void) { struct nl *nlp; unsigned long bucket_of_entry;