/*
  * In core log flags
  */
-#define XLOG_ICL_NEED_FLUSH    (1 << 0)        /* iclog needs REQ_PREFLUSH */
-#define XLOG_ICL_NEED_FUA      (1 << 1)        /* iclog needs REQ_FUA */
+#define XLOG_ICL_NEED_FLUSH    (1u << 0)       /* iclog needs REQ_PREFLUSH */
+#define XLOG_ICL_NEED_FUA      (1u << 1)       /* iclog needs REQ_FUA */
 
 #define XLOG_ICL_STRINGS \
        { XLOG_ICL_NEED_FLUSH,  "XLOG_ICL_NEED_FLUSH" }, \
 /*
  * Log ticket flags
  */
-#define XLOG_TIC_PERM_RESERV   0x1     /* permanent reservation */
+#define XLOG_TIC_PERM_RESERV   (1u << 0)       /* permanent reservation */
 
 #define XLOG_TIC_FLAGS \
        { XLOG_TIC_PERM_RESERV, "XLOG_TIC_PERM_RESERV" }
        char               t_ocnt;       /* original count               : 1  */
        char               t_cnt;        /* current count                : 1  */
        char               t_clientid;   /* who does this belong to;     : 1  */
-       char               t_flags;      /* properties of reservation    : 1  */
+       uint8_t            t_flags;      /* properties of reservation    : 1  */
 
         /* reservation array fields */
        uint               t_res_num;                    /* num in array : 4 */