aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/rbtree.txt
diff options
context:
space:
mode:
authorWang Tinggong <wangtinggong@gmail.com>2009-05-14 05:00:20 -0400
committerJiri Kosina <jkosina@suse.cz>2009-06-12 12:01:47 -0400
commit190342335c2a7939407d7391e5bb6c9ee39244eb (patch)
tree5e944867e22deab67d16c76af4eaf14759cd5a57 /Documentation/rbtree.txt
parent5cdcd9d691a4810ec3f5ed6b49e2bb24871c6907 (diff)
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>
Diffstat (limited to 'Documentation/rbtree.txt')
-rw-r--r--Documentation/rbtree.txt2
1 files changed, 1 insertions, 1 deletions
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:
188 188
189 struct rb_node *node; 189 struct rb_node *node;
190 for (node = rb_first(&mytree); node; node = rb_next(node)) 190 for (node = rb_first(&mytree); node; node = rb_next(node))
191 printk("key=%s\n", rb_entry(node, int, keystring)); 191 printk("key=%s\n", rb_entry(node, struct mytype, node)->keystring);
192 192