Use unsigned int instead of int for bitfields
[lttng-ust.git] / libringbuffer / frontend_types.h
index 32462f6b5725cb5ab1883566ee7bc397e43ad528..961c90e5084bd705c502d40e40a7cbb7b54307f6 100644 (file)
@@ -104,9 +104,9 @@ struct lttng_ust_lib_ring_buffer {
        unsigned long get_subbuf_consumed;      /* Read-side consumed */
        unsigned long prod_snapshot;    /* Producer count snapshot */
        unsigned long cons_snapshot;    /* Consumer count snapshot */
-       int get_subbuf:1;               /* Sub-buffer being held by reader */
-       int switch_timer_enabled:1;     /* Protected by ring_buffer_nohz_lock */
-       int read_timer_enabled:1;       /* Protected by ring_buffer_nohz_lock */
+       unsigned int get_subbuf:1,      /* Sub-buffer being held by reader */
+               switch_timer_enabled:1, /* Protected by ring_buffer_nohz_lock */
+               read_timer_enabled:1;   /* Protected by ring_buffer_nohz_lock */
        /* shmp pointer to self */
        DECLARE_SHMP(struct lttng_ust_lib_ring_buffer, self);
 } __attribute__((aligned(CAA_CACHE_LINE_SIZE)));
This page took 0.02345 seconds and 4 git commands to generate.