summary refs log tree commit diff
path: root/gmon/mcount.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-29 09:27:50 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-29 09:27:50 +0000
commitbe5b0fbcb25e88d0c5f7c360527679b4cd1155e0 (patch)
treeda021890f897628fa98d71243a4decd746133c81 /gmon/mcount.c
parenta363f8a4262fd3efb357ec6a2526dcecae3de25d (diff)
downloadglibc-be5b0fbcb25e88d0c5f7c360527679b4cd1155e0.tar.gz
glibc-be5b0fbcb25e88d0c5f7c360527679b4cd1155e0.tar.xz
glibc-be5b0fbcb25e88d0c5f7c360527679b4cd1155e0.zip
Use correct types for frompcindex and toindex variables.
Diffstat (limited to 'gmon/mcount.c')
-rw-r--r--gmon/mcount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gmon/mcount.c b/gmon/mcount.c
index f6eb229e2e..8e54812d75 100644
--- a/gmon/mcount.c
+++ b/gmon/mcount.c
@@ -31,6 +31,7 @@
 static char sccsid[] = "@(#)mcount.c	8.1 (Berkeley) 6/4/93";
 #endif
 
+#include <unistd.h>
 #include <sys/param.h>
 #include <sys/gmon.h>
 
@@ -57,10 +58,10 @@ static char sccsid[] = "@(#)mcount.c	8.1 (Berkeley) 6/4/93";
  */
 _MCOUNT_DECL(frompc, selfpc)	/* _mcount; may be static, inline, etc */
 {
-	register u_short *frompcindex;
+	register ARCINDEX *frompcindex;
 	register struct tostruct *top, *prevtop;
 	register struct gmonparam *p;
-	register long toindex;
+	register ARCINDEX toindex;
 	int i;
 
 	p = &_gmonparam;