Browse Source

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>
Wang Tinggong 16 years ago
parent
commit
190342335c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Documentation/rbtree.txt

+ 1 - 1
Documentation/rbtree.txt

@@ -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);