Fix error in tree.h

This commit is contained in:
Gregory Nutt 2014-06-02 13:44:44 -06:00
parent 84dc8faccb
commit e567b6ee49
1 changed files with 15 additions and 13 deletions

View File

@ -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); \
} \