Skip to content

Commit

Permalink
trivial: rbtree.txt: fix rb_entry() parameters in sample code
Browse files Browse the repository at this point in the history
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Wang Tinggong authored and Jiri Kosina committed Jun 12, 2009
1 parent 5cdcd9d commit 1903423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/rbtree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 1903423

Please sign in to comment.