summaryrefslogtreecommitdiff
path: root/sys/src/cmd/upas/imap4d
diff options
context:
space:
mode:
authorspew <devnull@localhost>2017-04-22 13:59:37 -0500
committerspew <devnull@localhost>2017-04-22 13:59:37 -0500
commit9cf519814591413493be10cfaa00853cb15e7a0b (patch)
treec4ad9e0e9ab31887432a8f707ae7c4fcc853c588 /sys/src/cmd/upas/imap4d
parentf2b7f24e4e14099251dd0ed8e7e13d7ca466b0cf (diff)
libavl: lookup can return the closest match
Diffstat (limited to 'sys/src/cmd/upas/imap4d')
-rw-r--r--sys/src/cmd/upas/imap4d/fstree.c2
-rw-r--r--sys/src/cmd/upas/imap4d/imp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/upas/imap4d/fstree.c b/sys/src/cmd/upas/imap4d/fstree.c
index 13ef32b7c..ee491c3fc 100644
--- a/sys/src/cmd/upas/imap4d/fstree.c
+++ b/sys/src/cmd/upas/imap4d/fstree.c
@@ -25,7 +25,7 @@ fstreefind(Box *mb, int id)
memset(&t, 0, sizeof t);
m0.id = id;
t.m = &m0;
- if(p = (Fstree*)avllookup(mb->fstree, &t))
+ if(p = (Fstree*)avllookup(mb->fstree, &t, 0))
return p->m;
return nil;
}
diff --git a/sys/src/cmd/upas/imap4d/imp.c b/sys/src/cmd/upas/imap4d/imp.c
index c5542eab7..a8a96fb28 100644
--- a/sys/src/cmd/upas/imap4d/imp.c
+++ b/sys/src/cmd/upas/imap4d/imp.c
@@ -100,7 +100,7 @@ rdimp(Biobuf *b, Box *box)
memset(&t, 0, sizeof t);
m0.info[Idigest] = f[0];
t.m = &m0;
- p = (Mtree*)avllookup(mtree, &t);
+ p = (Mtree*)avllookup(mtree, &t, 0);
if(p){
m = p->m;
if(m->uid && m->uid != u){