Not logged in
Log in now
Create an account
Subscribe to LWN
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
PostgreSQL 9.3 beta: Federated databases and more
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);
...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