summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-03-07 12:00:37 +0000
committerRoy Marples <roy@marples.name>2019-03-07 12:00:37 +0000
commit243625f8d1891298a1a292445f592639ffa7b09d (patch)
tree71595a7ec355e7d52dbd4cdf8e59cce8867f6ec1 /compat
parent479a1bfb2e11e736329b6d068358713be851c927 (diff)
downloaddhcpcd-243625f8d1891298a1a292445f592639ffa7b09d.tar.xz
Use __BIT
Diffstat (limited to 'compat')
-rw-r--r--compat/rbtree.h4
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))