Commit 190342335c2a7939407d7391e5bb6c9ee39244eb

Authored by Wang Tinggong
Committed by Jiri Kosina
1 parent 5cdcd9d691

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

Documentation/rbtree.txt
... ... @@ -188,5 +188,5 @@
188 188  
189 189 struct rb_node *node;
190 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);