]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
rbtree: silence more compile warnings.
authorRoy Marples <roy@marples.name>
Mon, 4 Mar 2019 16:09:33 +0000 (16:09 +0000)
committerRoy Marples <roy@marples.name>
Mon, 4 Mar 2019 16:09:33 +0000 (16:09 +0000)
compat/rbtree.h

index c570ed4abd693c46958f2687bcfbf3c9a4622e69..bc08af8164472ccc4e0924d28b28384c5d9d963a 100644 (file)
@@ -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        0x2
-#define        RB_FLAG_RED             0x1
+#define        RB_FLAG_POSITION        0x2U
+#define        RB_FLAG_RED             0x1U
 #define        RB_FLAG_MASK            (RB_FLAG_POSITION|RB_FLAG_RED)
 #define        RB_FATHER(rb) \
     ((struct rb_node *)((rb)->rb_info & ~RB_FLAG_MASK))