Not logged in
Log in now
Create an account
Subscribe to LWN
Recent Features
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
void rb_link_node(struct rb_node *new_node, struct rb_node *parent, struct rb_node **link);
...which is all rb_node pointers (or pointers to pointers). But it declares this function:
void my_rb_insert(struct rb_root *root, struct my_stuff *new)
...which has "new" as a struct my_stuff pointer. That function then calls:
rb_link_node(new, parent, link); rb_insert_color(new, root);
...shouldn't "new" in latter two calls be a pointer to the embedded rb_node?
Copyright © 2013, Eklektix, Inc. Comments and public postings are copyrighted by their creators. Linux is a registered trademark of Linus Torvalds