Explorar el Código

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>
Wang Tinggong hace 16 años
padre
commit
190342335c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Documentation/rbtree.txt

+ 1 - 1
Documentation/rbtree.txt

@@ -188,5 +188,5 @@ Example:
 
 
   struct rb_node *node;
   struct rb_node *node;
   for (node = rb_first(&mytree); node; node = rb_next(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);