From 31d654e6503229c52172d72eaa018e1f274b6d48 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 6 May 2022 15:00:25 +0200 Subject: kernel: remove the union in `struct handle` --- src/kernel/vfs/request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/request.c') diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c index d6f348a..30c0e77 100644 --- a/src/kernel/vfs/request.c +++ b/src/kernel/vfs/request.c @@ -40,9 +40,9 @@ void vfsreq_finish(struct vfs_request *req, int ret) { panic_invalid_state(); // we check for free handles before the open() call struct handle *backing = handle_init(HANDLE_FILE); - backing->file.backend = req->backend; + backing->backend = req->backend; req->backend->refcount++; - backing->file.id = ret; + backing->file_id = ret; req->caller->handles[handle] = backing; ret = handle; } else { -- cgit v1.2.3