]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use correct types for frompcindex and toindex variables.
authorUlrich Drepper <drepper@redhat.com>
Thu, 29 Aug 2002 09:27:50 +0000 (09:27 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 29 Aug 2002 09:27:50 +0000 (09:27 +0000)
gmon/gmon.c
gmon/mcount.c

index c2fcb8fd753ff200372938cdb853db1ce226d1e1..72654840fc96c0a42674dd14e38555b8f531e15d 100644 (file)
@@ -141,9 +141,9 @@ __monstartup (lowpc, highpc)
     }
   p->tos = (struct tostruct *)cp;
   cp += p->tossize;
-  p->kcount = (u_short *)cp;
+  p->kcount = (HISTCOUNTER *)cp;
   cp += p->kcountsize;
-  p->froms = (u_short *)cp;
+  p->froms = (ARCINDEX *)cp;
 
   p->tos[0].link = 0;
 
@@ -212,7 +212,8 @@ write_call_graph (fd)
   u_char tag = GMON_TAG_CG_ARC;
   struct gmon_cg_arc_record raw_arc[NARCS_PER_WRITEV]
     __attribute__ ((aligned (__alignof__ (char*))));
-  int from_index, to_index, from_len;
+  ARCINDEX from_index, to_index;
+  int from_len;
   u_long frompc;
   struct iovec iov[2 * NARCS_PER_WRITEV];
   int nfilled;
index f6eb229e2e77ec69fc78caa21a0edfd48dc62b6b..8e54812d75c3f1e021e1b80a9c83b0b2615aada6 100644 (file)
@@ -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;