From bd6da6a5307fe7debd0e791da87c5ec43a278c8d Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Sun, 3 Oct 2004 18:22:35 +0000 Subject: Use a proper prototype for hertz(). --- usr.bin/gprof/gprof.h | 1 + usr.bin/gprof/hertz.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h index 5e44307456cc2..aba2dea0018bc 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 7420cd3a9ca3e..cf8a3ae68523d 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; -- cgit v1.3