projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: GCC unaligned pointer warnings
[lttng-ust.git]
/
liblttng-ust
/
lttng-ust-comm.c
diff --git
a/liblttng-ust/lttng-ust-comm.c
b/liblttng-ust/lttng-ust-comm.c
index 703852a3aaef0b08ebd9975d0ded4df74061dc1e..9a40f9582522f502768cf8ed66edeb78e7acac65 100644
(file)
--- a/
liblttng-ust/lttng-ust-comm.c
+++ b/
liblttng-ust/lttng-ust-comm.c
@@
-857,14
+857,18
@@
int handle_message(struct sock_info *sock_info,
}
case LTTNG_UST_STREAM:
{
}
case LTTNG_UST_STREAM:
{
+ uint64_t memory_map_size;
+
/* Receive shm_fd, wakeup_fd */
ret = ustcomm_recv_stream_from_sessiond(sock,
/* Receive shm_fd, wakeup_fd */
ret = ustcomm_recv_stream_from_sessiond(sock,
- &
lum->u.stream.len
,
+ &
memory_map_size
,
&args.stream.shm_fd,
&args.stream.wakeup_fd);
if (ret) {
goto error;
}
&args.stream.shm_fd,
&args.stream.wakeup_fd);
if (ret) {
goto error;
}
+ lum->u.stream.len = memory_map_size;
+
if (ops->cmd)
ret = ops->cmd(lum->handle, lum->cmd,
(unsigned long) &lum->u,
if (ops->cmd)
ret = ops->cmd(lum->handle, lum->cmd,
(unsigned long) &lum->u,
This page took
0.035844 seconds
and
4
git commands to generate.