summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init/main.c2
-rw-r--r--src/kernel/vfs/request.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 233b92d..66d4b2b 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -48,7 +48,7 @@ void read_file(const char *path, size_t len) {
}
void fs_test(void) {
- handle_t front, back, file;
+ handle_t front, back;
front = _syscall_fs_create(&back);
if (_syscall_fork()) {
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index dfeeb50..33a8458 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -78,8 +78,6 @@ fail:
}
int vfs_request_finish(struct vfs_request *req, int ret) {
- struct process *caller = req->caller;
-
if (req->type == VFSOP_OPEN && ret >= 0) {
// open() calls need special handling
// we need to wrap the id returned by the VFS in a handle passed to