]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/avl
auth/keyfs: support -r flag to mount read-only
[plan9front.git] / sys / man / 2 / avl
index fde1cead1fe95555c50d33df4631cf5e2dd89a9a..388b8b3f44e0f84a77036650692972812e737b6c 100644 (file)
@@ -95,16 +95,16 @@ nodecmp(Avl *la, Avl *lb)
 }
 
 int
-get(char *key)
+get(Avltree *t, char *key)
 {
        Node *h, n;
 
        n.key = key;
-       h = (Node*)avllookup(&n);
+       h = (Node*)avllookup(t, &n);
        return h ? h->val : -1;
 }
 \fI\&...\fP
-       Avltree *t = avlcreate(AVL, nodecmp);
+       Avltree *t = avlcreate(nodecmp);
 
 .EE
 .SH SOURCE