aboutsummaryrefslogtreecommitdiff
path: root/src/common/libalgo
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 18:53:15 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 18:53:15 +0100
commit62e5a35940198f0f8fbabdf31c80455647420c4e (patch)
treed73846d90d0611125eb99b53e473f8bc76c7fa15 /src/common/libalgo
parent277b329c5609b8172ad0c142117edfa9a08279da (diff)
downloadkogata-62e5a35940198f0f8fbabdf31c80455647420c4e.tar.gz
kogata-62e5a35940198f0f8fbabdf31c80455647420c4e.zip
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)
Diffstat (limited to 'src/common/libalgo')
-rw-r--r--src/common/libalgo/btree.c2
1 files changed, 1 insertions, 1 deletions
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;