trivial: rbtree.txt: fix rb_entry() parameters in sample code
authorWang Tinggong <wangtinggong@gmail.com>
Thu, 14 May 2009 09:00:20 +0000 (11:00 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 12 Jun 2009 16:01:47 +0000 (18:01 +0200)
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/rbtree.txt

index 77102148e67b63f5eefd704fcd6268c13f305e73..aae8355d3166ddde11436ca5a21bd7e234e68806 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);