summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-10-03 18:22:35 +0000
committerstefanf <stefanf@FreeBSD.org>2004-10-03 18:22:35 +0000
commitd046f2677cf75e59aeffb80e6cd595932d3b7474 (patch)
tree15e48b9cd2c212847e387617ae0c5672fc2dad9b /usr.bin/gprof
parent2594b3ec4c5941fb573c1c1c82af16035d0e4f1c (diff)
downloadFreeBSD-src-d046f2677cf75e59aeffb80e6cd595932d3b7474.zip
FreeBSD-src-d046f2677cf75e59aeffb80e6cd595932d3b7474.tar.gz
Use a proper prototype for hertz().
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r--usr.bin/gprof/gprof.h1
-rw-r--r--usr.bin/gprof/hertz.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h
index 5e44307..aba2dea 100644
--- a/usr.bin/gprof/gprof.h
+++ b/usr.bin/gprof/gprof.h
@@ -290,6 +290,7 @@ void getpfile(char *);
gprofheader();
gprofline();
*/
+int hertz(void);
void inheritflags(nltype *);
int kernel_getnfile(const char *, char ***);
/*
diff --git a/usr.bin/gprof/hertz.c b/usr.bin/gprof/hertz.c
index 7420cd3..cf8a3ae 100644
--- a/usr.bin/gprof/hertz.c
+++ b/usr.bin/gprof/hertz.c
@@ -48,7 +48,8 @@ __FBSDID("$FreeBSD$");
*/
#define HZ_WRONG 0
-hertz()
+int
+hertz(void)
{
struct itimerval tim;
OpenPOWER on IntegriCloud