From 62e5a35940198f0f8fbabdf31c80455647420c4e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 19 Feb 2015 18:53:15 +0100 Subject: Several things : - disambiguate syscall.h : kernel syscall.h moved to sct.h - fix btree_remove_v !! (munmap fucked up stuff before) - make nullfs's directory listing non-exclusive (it actually copies the listing on open() and readdir()'s from that copy) --- src/common/libalgo/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/libalgo/btree.c b/src/common/libalgo/btree.c index d3a030a..9ea4a15 100644 --- a/src/common/libalgo/btree.c +++ b/src/common/libalgo/btree.c @@ -216,7 +216,7 @@ void btree_remove_v(btree_t *t, const void* key, const void* val) { } else if (c > 0) { i->right = remove_aux(t, i->right, key, val); return equilibrate(i); - } else if (i->val == i) { + } else if (i->val == val) { // remove item i btree_item_t *new_i; -- cgit v1.2.3