summary refs log tree commit diff
path: root/gmon/gmon.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/gmon.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/gmon.c')
-rw-r--r--gmon/gmon.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gmon/gmon.c b/gmon/gmon.c
index c2fcb8fd75..72654840fc 100644
--- a/gmon/gmon.c
+++ b/gmon/gmon.c
@@ -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;