Some minor changes.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1383 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-10-05 17:00:44 +00:00
parent eafeadc689
commit f7a056e53c
1 changed files with 15 additions and 15 deletions

View File

@ -66,7 +66,7 @@ struct bootfs_vnode {
struct bootfs {
mount_id id;
mutex lock;
int next_vnode_id;
int32 next_vnode_id;
void *vnode_list_hash;
struct bootfs_vnode *root_vnode;
};
@ -98,7 +98,7 @@ bootfs_vnode_hash_func(void *_v, const void *_key, unsigned int range)
if (v != NULL)
return v->id % range;
else
return (*key) % range;
}
@ -111,7 +111,7 @@ bootfs_vnode_compare_func(void *_v, const void *_key)
if (v->id == *key)
return 0;
else
return -1;
}
@ -126,7 +126,7 @@ bootfs_create_vnode(struct bootfs *fs, const char *name)
return NULL;
memset(v, 0, sizeof(struct bootfs_vnode));
v->id = fs->next_vnode_id++;
v->id = atomic_add(&fs->next_vnode_id, 1);
v->name = kstrdup(name);
if (v->name == NULL) {
@ -556,9 +556,9 @@ bootfs_get_vnode(fs_volume _fs, vnode_id id, fs_vnode *v, bool r)
TRACE(("bootfs_get_vnode: looked it up at %p\n", *v));
if (*v)
return 0;
else
return ENOENT;
return B_OK;
return B_ENTRY_NOT_FOUND;
}