From 42bcdefc6b793b7ba5c1487a0cf0b867fb564b04 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 25 Mar 2023 11:57:07 +0200 Subject: [PATCH] Rename "vfs" to "vfs_ctx" inside USTAR class --- FileSystem/FS/ustar.cpp | 6 +++--- include/filesystem/ustar.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FileSystem/FS/ustar.cpp b/FileSystem/FS/ustar.cpp index 7f06bd9..8e641a6 100644 --- a/FileSystem/FS/ustar.cpp +++ b/FileSystem/FS/ustar.cpp @@ -24,7 +24,7 @@ namespace VirtualFileSystem .Read = USTAR_Read, }; - USTAR::USTAR(uintptr_t Address, Virtual *vfs) + USTAR::USTAR(uintptr_t Address, Virtual *vfs_ctx) { trace("Initializing USTAR with address %#llx", Address); @@ -39,7 +39,7 @@ namespace VirtualFileSystem string2int(((FileHeader *)Address)->mode), ((FileHeader *)Address)->size); - vfs->CreateRoot("/", &ustar_op); + vfs_ctx->CreateRoot("/", &ustar_op); for (size_t i = 0;; i++) { @@ -60,7 +60,7 @@ namespace VirtualFileSystem if (isempty((char *)header->name)) goto NextFileAddress; - node = vfs->Create(header->name, NodeFlags::NODE_FLAG_ERROR); + node = vfs_ctx->Create(header->name, NodeFlags::NODE_FLAG_ERROR); debug("Added node: %s", node->Name); if (node == nullptr) { diff --git a/include/filesystem/ustar.hpp b/include/filesystem/ustar.hpp index 28d69d5..2dc44e1 100644 --- a/include/filesystem/ustar.hpp +++ b/include/filesystem/ustar.hpp @@ -63,7 +63,7 @@ namespace VirtualFileSystem } public: - USTAR(uintptr_t Address, Virtual *vfs); + USTAR(uintptr_t Address, Virtual *vfs_ctx); ~USTAR(); }; }