diff --git a/sys/sys/tree.h b/sys/sys/tree.h index 695a065..3fbabff 100644 --- a/sys/sys/tree.h +++ b/sys/sys/tree.h @@ -306,6 +306,7 @@ struct name##_scan_info { \ } #define RB_HEAD(name, type) \ +RB_SCAN_INFO(name, type) \ struct name { \ struct type *rbh_root; /* root of the tree */ \ struct name##_scan_info *rbh_inprog; /* scans in progress */ \ @@ -417,8 +418,7 @@ STORQUAL int name##_RB_SCAN(struct name *, int (*)(struct type *, void *),\ int (*)(struct type *, void *), void *); \ STORQUAL struct type *name##_RB_NEXT(struct type *); \ STORQUAL struct type *name##_RB_PREV(struct type *); \ -STORQUAL struct type *name##_RB_MINMAX(struct name *, int); \ -RB_SCAN_INFO(name, type) \ +STORQUAL struct type *name##_RB_MINMAX(struct name *, int); /* * A version which supplies a fast lookup routine for an exact match