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:
Wang Tinggong 2009-05-14 11:00:20 +02:00 committed by Jiri Kosina
parent 5cdcd9d691
commit 190342335c

View file

@ -188,5 +188,5 @@ Example:
struct rb_node *node; struct rb_node *node;
for (node = rb_first(&mytree); node; node = rb_next(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);