Fix: lttng_channel_syscall_mask() bool use in bitfield
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 8 Dec 2017 19:17:21 +0000 (14:17 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 8 Dec 2017 19:17:21 +0000 (14:17 -0500)
gcc 7 warns about using ~ on a bool. Pass a char as input type instead.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-syscalls.c

index 11f904af88d0717509d73cf6f3d4e90ae390b933..0b980a1a92be53dc11442e672ff7f1ab0b08b5c6 100644 (file)
@@ -1259,7 +1259,7 @@ long lttng_channel_syscall_mask(struct lttng_channel *channel,
        filter = channel->sc_filter;
 
        for (bit = 0; bit < ARRAY_SIZE(sc_table); bit++) {
-               bool state;
+               char state;
 
                if (channel->sc_table) {
                        if (filter)
@@ -1272,7 +1272,7 @@ long lttng_channel_syscall_mask(struct lttng_channel *channel,
                bt_bitfield_write_be(tmp_mask, char, bit, 1, state);
        }
        for (; bit < sc_tables_len; bit++) {
-               bool state;
+               char state;
 
                if (channel->compat_sc_table) {
                        if (filter)
This page took 0.026492 seconds and 4 git commands to generate.