From: Wang Tinggong Date: Thu, 14 May 2009 09:00:20 +0000 (+0200) Subject: trivial: rbtree.txt: fix rb_entry() parameters in sample code X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=190342335c2a7939407d7391e5bb6c9ee39244eb;p=openwrt%2Fstaging%2Fblogic.git trivial: rbtree.txt: fix rb_entry() parameters in sample code Reviewed-by: WANG Cong Signed-off-by: Jiri Kosina --- diff --git a/Documentation/rbtree.txt b/Documentation/rbtree.txt index 77102148e67b..aae8355d3166 100644 --- a/Documentation/rbtree.txt +++ b/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);