summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2004-03-23 03:43:53 +0000
committerNiels Provos <provos@gmail.com>2004-03-23 03:43:53 +0000
commit5908bd721368a9aebc752fffbe6ec5b753ed7e3a (patch)
tree6866f7d779fe491d9913cdb86e3987ee03271297 /compat
parentcd699abf44d6da49dffff09f72f843bbb0211aae (diff)
downloadlibevent-5908bd721368a9aebc752fffbe6ec5b753ed7e3a.tar.gz
provided buffered events
svn:r95
Diffstat (limited to 'compat')
-rw-r--r--compat/sys/tree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/sys/tree.h b/compat/sys/tree.h
index 927ca04c..6a3381ca 100644
--- a/compat/sys/tree.h
+++ b/compat/sys/tree.h
@@ -379,7 +379,7 @@ void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
struct type *name##_RB_REMOVE(struct name *, struct type *); \
struct type *name##_RB_INSERT(struct name *, struct type *); \
struct type *name##_RB_FIND(struct name *, struct type *); \
-struct type *name##_RB_NEXT(struct name *, struct type *); \
+struct type *name##_RB_NEXT(struct type *); \
struct type *name##_RB_MINMAX(struct name *, int); \
\
@@ -624,7 +624,7 @@ name##_RB_FIND(struct name *head, struct type *elm) \
} \
\
struct type * \
-name##_RB_NEXT(struct name *head, struct type *elm) \
+name##_RB_NEXT(struct type *elm) \
{ \
if (RB_RIGHT(elm, field)) { \
elm = RB_RIGHT(elm, field); \
@@ -665,13 +665,13 @@ name##_RB_MINMAX(struct name *head, int val) \
#define RB_INSERT(name, x, y) name##_RB_INSERT(x, y)
#define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y)
#define RB_FIND(name, x, y) name##_RB_FIND(x, y)
-#define RB_NEXT(name, x, y) name##_RB_NEXT(x, y)
+#define RB_NEXT(name, x, y) name##_RB_NEXT(y)
#define RB_MIN(name, x) name##_RB_MINMAX(x, RB_NEGINF)
#define RB_MAX(name, x) name##_RB_MINMAX(x, RB_INF)
#define RB_FOREACH(x, name, head) \
for ((x) = RB_MIN(name, head); \
(x) != NULL; \
- (x) = name##_RB_NEXT(head, x))
+ (x) = name##_RB_NEXT(x))
#endif /* _SYS_TREE_H_ */