diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2002-02-01 01:39:09 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-02-01 01:39:09 +0000 |
commit | a99d1013528f3be1099e24ae3ed8fb53c302bbbb (patch) | |
tree | 4d25eee58a2785a88de7b78bde70bace2fa7506a /lib/libc/gmon | |
parent | b231cb39457c13eef87bc92db0a856bef9d3bfeb (diff) | |
download | src-a99d1013528f3be1099e24ae3ed8fb53c302bbbb.tar.gz src-a99d1013528f3be1099e24ae3ed8fb53c302bbbb.zip |
* Remove __P and convert to ANSI prototypes.
* Remove 'register'. (some functions had 7+ register functions...)
* Fix SCM ID's.
Notes
Notes:
svn path=/head/; revision=90046
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r-- | lib/libc/gmon/gmon.c | 10 | ||||
-rw-r--r-- | lib/libc/gmon/mcount.c | 26 |
2 files changed, 17 insertions, 19 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index 35f92daed8bb..e82561934579 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -29,13 +29,13 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ #if !defined(lint) && defined(LIBC_SCCS) static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93"; #endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "namespace.h" #include <sys/param.h> @@ -67,15 +67,15 @@ static int s_scale; #define ERR(s) _write(2, s, sizeof(s)) -void moncontrol __P((int)); -static int hertz __P((void)); +void moncontrol(int); +static int hertz(void); void monstartup(lowpc, highpc) u_long lowpc; u_long highpc; { - register int o; + int o; char *cp; struct gmonparam *p = &_gmonparam; diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c index caf0c14426b9..8547a9d9528a 100644 --- a/lib/libc/gmon/mcount.c +++ b/lib/libc/gmon/mcount.c @@ -32,12 +32,10 @@ */ #if !defined(lint) && !defined(_KERNEL) && defined(LIBC_SCCS) -#if 0 static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/gmon.h> @@ -46,10 +44,10 @@ static const char rcsid[] = #include <vm/vm.h> #include <vm/vm_param.h> #include <vm/pmap.h> -void bintr __P((void)); -void btrap __P((void)); -void eintr __P((void)); -void user __P((void)); +void bintr(void); +void btrap(void); +void eintr(void); +void user(void); #endif /* @@ -68,16 +66,16 @@ void user __P((void)); * perform this optimization. */ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ - register uintfptr_t frompc, selfpc; + uintfptr_t frompc, selfpc; { #ifdef GUPROF u_int delta; #endif - register fptrdiff_t frompci; - register u_short *frompcindex; - register struct tostruct *top, *prevtop; - register struct gmonparam *p; - register long toindex; + fptrdiff_t frompci; + u_short *frompcindex; + struct tostruct *top, *prevtop; + struct gmonparam *p; + long toindex; #ifdef _KERNEL MCOUNT_DECL(s) #endif |