summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/gmon.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-07 12:05:48 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-07 12:05:48 +0000
commit54e3971c38cb402757c185f3dd7ca3c3b8114630 (patch)
treee90cb4057fdf78c33a0381b21ed9ba2874ae514c /libc/sysdeps/linux/common/gmon.c
parentdd4f0f80a2240acaba73caa32ee4fd906e6c5264 (diff)
Patch from Stefan Allius:
fix a couple of gcc 3.3 compiler warnings in gmon.c
Diffstat (limited to 'libc/sysdeps/linux/common/gmon.c')
-rw-r--r--libc/sysdeps/linux/common/gmon.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/gmon.c b/libc/sysdeps/linux/common/gmon.c
index b3fe788f7..a3444a28e 100644
--- a/libc/sysdeps/linux/common/gmon.c
+++ b/libc/sysdeps/linux/common/gmon.c
@@ -52,7 +52,7 @@
/* Head of basic-block list or NULL. */
struct __bb *__bb_head;
-struct gmonparam _gmonparam = { GMON_PROF_OFF };
+struct gmonparam _gmonparam = { state: GMON_PROF_OFF };
/*
* See profil(2) where this is described:
@@ -221,8 +221,7 @@ static void write_call_graph (int fd)
u_char tag = GMON_TAG_CG_ARC;
struct gmon_cg_arc_record raw_arc[NARCS_PER_WRITEV]
__attribute__ ((aligned (__alignof__ (char*))));
- ARCINDEX from_index, to_index;
- int from_len;
+ ARCINDEX from_index, to_index, from_len;
u_long frompc;
struct iovec iov[2 * NARCS_PER_WRITEV];
int nfilled;