From 6ef15f1329725afc782bcaeb1738be4cb444b5b8 Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 25 Nov 2008 06:38:27 +0000 Subject: [PATCH] Fixed following compile warning: gcc -DHAVE_CONFIG_H -I.. -I.. -g -O2 -MT lttd.o -MD -MP -MF .deps/lttd.Tpo +-c -o lttd.o lttd.c lttd.c: In function 'read_subbuffer': lttd.c:467: warning: passing argument 2 of 'splice' from incompatible pointer type git-svn-id: http://ltt.polymtl.ca/svn@3161 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/ltt-control/lttd/lttd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/ltt-control/lttd/lttd.c b/trunk/ltt-control/lttd/lttd.c index 06af6337..30c7084c 100644 --- a/trunk/ltt-control/lttd/lttd.c +++ b/trunk/ltt-control/lttd/lttd.c @@ -437,7 +437,8 @@ int read_subbuffer(struct fd_pair *pair) unsigned int consumed_old; int err; long ret; - unsigned long len, offset; + unsigned long len; + off_t offset; err = ioctl(pair->channel, RELAY_GET_SUBBUF, &consumed_old); @@ -462,7 +463,8 @@ int read_subbuffer(struct fd_pair *pair) len = pair->subbuf_size; offset = 0; while (len > 0) { - printf_verbose("splice chan to pipe offset %lu\n", offset); + printf_verbose("splice chan to pipe offset %lu\n", + (unsigned long)offset); ret = splice(pair->channel, &offset, thread_pipe[1], NULL, len, SPLICE_F_MOVE); printf_verbose("splice chan to pipe ret %ld\n", ret); -- 2.34.1