Fix error in tree.h
This commit is contained in:
parent
84dc8faccb
commit
e567b6ee49
|
@ -534,8 +534,10 @@ while (0)
|
|||
|
||||
#define RB_GENERATE(name, type, field, cmp) \
|
||||
RB_GENERATE_INTERNAL(name, type, field, cmp,)
|
||||
|
||||
#define RB_GENERATE_STATIC(name, type, field, cmp) \
|
||||
RB_GENERATE_INTERNAL(name, type, field, cmp, __attribute__((__unused__)) static)
|
||||
|
||||
#define RB_GENERATE_INTERNAL(name, type, field, cmp, attr) \
|
||||
attr void name##_RB_INSERT_COLOR(struct name *head, struct type *elm) \
|
||||
{ \
|
||||
|
@ -977,6 +979,7 @@ while (0)
|
|||
{ \
|
||||
elm = RB_RIGHT(elm, field); \
|
||||
} \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
if (RB_PARENT(elm, field) && \
|
||||
|
@ -995,7 +998,6 @@ while (0)
|
|||
elm = RB_PARENT(elm, field); \
|
||||
} \
|
||||
} \
|
||||
} \
|
||||
\
|
||||
return (elm); \
|
||||
} \
|
||||
|
|
Loading…
Reference in New Issue