Fix: warnings on Solaris10
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 4 May 2016 17:02:49 +0000 (13:02 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 May 2016 19:26:33 +0000 (15:26 -0400)
commit86c86ab8206488873b3af3ae60977b6365189fc4
treee6c757ac905e2b4e26bec3737b8f98eadbf5fefb
parentd3b46d525ed35f8d3fc81614fad090b27529e8bd
Fix: warnings on Solaris10

Cast values to uint64_t before passing them to htobe64() because
the implementation on Solaris10 uses bitshifts and will complain
when passed 32bits values.

This fixes multiple warnings like:

lttng-live-comm.c:169:2: warning: left shift count >= width of type
  cmd.data_size = htobe64(sizeof(connect));

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/lttng-live/lttng-live-comm.c
This page took 0.024932 seconds and 4 git commands to generate.