They were uint32_t because I wanted to be sure that there wouldn't be any
padding added to the struct. But this should be true also with bool:1.
/* Total number of bytes used by this node */
uint32_t alloc_size:31;
/* TRUE if the user gave the correct password the last time. */
- uint32_t last_success:1;
+ bool last_success:1;
char data[4]; /* key \0 value \0 */
};
struct mail_sort_node {
uint32_t seq:29;
- uint32_t wanted:1;
- uint32_t no_update:1;
- uint32_t sort_id_changed:1;
+ bool wanted:1;
+ bool no_update:1;
+ bool sort_id_changed:1;
uint32_t sort_id;
};
ARRAY_DEFINE_TYPE(mail_sort_node, struct mail_sort_node);