mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
trivial: rbtree.txt: fix rb_entry() parameters in sample code
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
5cdcd9d691
commit
190342335c
1 changed files with 1 additions and 1 deletions
|
@ -188,5 +188,5 @@ Example:
|
|||
|
||||
struct rb_node *node;
|
||||
for (node = rb_first(&mytree); node; node = rb_next(node))
|
||||
printk("key=%s\n", rb_entry(node, int, keystring));
|
||||
printk("key=%s\n", rb_entry(node, struct mytype, node)->keystring);
|
||||
|
||||
|
|
Loading…
Reference in a new issue