trivial: rbtree.txt: fix rb_entry() parameters in sample code
Wang Tinggong [Thu, 14 May 2009 09:00:20 +0000 (11:00 +0200)]
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

Documentation/rbtree.txt

index 7710214..aae8355 100644 (file)
@@ -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);