summaryrefslogtreecommitdiffstats
path: root/runtime/transport/utt.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-11-28 11:26:52 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-11-28 11:26:52 -0500
commit29bdbdb17f088a997b772415d57c37258576f0f5 (patch)
tree33e666ae8cef67e323c62376f95e4393f2a9dd13 /runtime/transport/utt.c
parent70514d65f670ac2160af4c282ebad1e7eb852341 (diff)
downloadsystemtap-steved-29bdbdb17f088a997b772415d57c37258576f0f5.tar.gz
systemtap-steved-29bdbdb17f088a997b772415d57c37258576f0f5.tar.xz
systemtap-steved-29bdbdb17f088a997b772415d57c37258576f0f5.zip
PR5947: make runtime code -Wpointer-arith-clean
Diffstat (limited to 'runtime/transport/utt.c')
-rw-r--r--runtime/transport/utt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/transport/utt.c b/runtime/transport/utt.c
index 8ed84473..21d2ab8a 100644
--- a/runtime/transport/utt.c
+++ b/runtime/transport/utt.c
@@ -40,7 +40,7 @@ static int utt_overwrite_flag = 0;
size_t utt_switch_subbuf(struct utt_trace *utt, struct rchan_buf *buf,
size_t length)
{
- void *old, *new;
+ char *old, *new;
size_t old_subbuf, new_subbuf;
if (unlikely(buf == NULL))
@@ -69,7 +69,7 @@ size_t utt_switch_subbuf(struct utt_trace *utt, struct rchan_buf *buf,
old = buf->data;
new_subbuf = buf->subbufs_produced % buf->chan->n_subbufs;
- new = buf->start + new_subbuf * buf->chan->subbuf_size;
+ new = (char*)buf->start + new_subbuf * buf->chan->subbuf_size;
buf->offset = 0;
if (!buf->chan->cb->subbuf_start(buf, new, old, buf->prev_padding)) {
buf->offset = buf->chan->subbuf_size + 1;