From e567ebeee5ea196128f15adcf30cec5dd1137f90 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 7 Jul 2022 20:29:13 +0200 Subject: kernel: add the vfsreq_finish_short shorthand function --- src/kernel/arch/i386/driver/fsroot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/i386/driver/fsroot.c') diff --git a/src/kernel/arch/i386/driver/fsroot.c b/src/kernel/arch/i386/driver/fsroot.c index 10cf3bc..ccba0b6 100644 --- a/src/kernel/arch/i386/driver/fsroot.c +++ b/src/kernel/arch/i386/driver/fsroot.c @@ -134,9 +134,9 @@ static int handle(struct vfs_request *req) { static void accept(struct vfs_request *req) { if (req->caller) { - vfsreq_finish(req, handle(req), 0, NULL); + vfsreq_finish_short(req, handle(req)); } else { - vfsreq_finish(req, -1, 0, NULL); + vfsreq_finish_short(req, -1); } } -- cgit v1.2.3