Use unsigned int instead of int for bitfields
[lttng-ust.git] / libringbuffer / backend_types.h
index 7300309f27ef97071354a8f4298ad7bed50d9f67..3d8bd3cb3392c1f5c3db2d3fc11323e1b29f7081 100644 (file)
@@ -53,7 +53,7 @@ struct lttng_ust_lib_ring_buffer_backend {
        DECLARE_SHMP(struct channel, chan);     /* Associated channel */
        int cpu;                        /* This buffer's cpu. -1 if global. */
        union v_atomic records_read;    /* Number of records read */
-       unsigned int allocated:1;       /* Bool: is buffer allocated ? */
+       unsigned int allocated:1;       /* is buffer allocated ? */
 };
 
 struct lttng_ust_lib_ring_buffer_shmp {
@@ -69,7 +69,7 @@ struct channel_backend {
                                         * for writer.
                                         */
        unsigned int buf_size_order;    /* Order of buffer size */
-       int extra_reader_sb:1;          /* Bool: has extra reader subbuffer */
+       unsigned int extra_reader_sb:1; /* has extra reader subbuffer ? */
        unsigned long num_subbuf;       /* Number of sub-buffers for writer */
        uint64_t start_tsc;             /* Channel creation TSC value */
        DECLARE_SHMP(void *, priv_data);/* Client-specific information */
This page took 0.024938 seconds and 4 git commands to generate.