diff options
| author | Roy Marples <roy@marples.name> | 2019-03-07 12:00:37 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-03-07 12:00:37 +0000 |
| commit | 243625f8d1891298a1a292445f592639ffa7b09d (patch) | |
| tree | 71595a7ec355e7d52dbd4cdf8e59cce8867f6ec1 /compat | |
| parent | 479a1bfb2e11e736329b6d068358713be851c927 (diff) | |
| download | dhcpcd-243625f8d1891298a1a292445f592639ffa7b09d.tar.xz | |
Use __BIT
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/rbtree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/rbtree.h b/compat/rbtree.h index 3196d341..9eb78512 100644 --- a/compat/rbtree.h +++ b/compat/rbtree.h @@ -61,8 +61,8 @@ typedef struct rb_node { * rb_node will have an alignment of 4 or 8 bytes. */ uintptr_t rb_info; -#define RB_FLAG_POSITION (uintptr_t)0x2 -#define RB_FLAG_RED (uintptr_t)0x1 +#define RB_FLAG_POSITION __BIT(1) +#define RB_FLAG_RED __BIT(0) #define RB_FLAG_MASK (RB_FLAG_POSITION|RB_FLAG_RED) #define RB_FATHER(rb) \ ((struct rb_node *)((rb)->rb_info & ~RB_FLAG_MASK)) |
