Rename "vfs" to "vfs_ctx" inside USTAR class

This commit is contained in:
Alex 2023-03-25 11:57:07 +02:00
parent 177a80403f
commit 42bcdefc6b
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ namespace VirtualFileSystem
.Read = USTAR_Read, .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); trace("Initializing USTAR with address %#llx", Address);
@ -39,7 +39,7 @@ namespace VirtualFileSystem
string2int(((FileHeader *)Address)->mode), string2int(((FileHeader *)Address)->mode),
((FileHeader *)Address)->size); ((FileHeader *)Address)->size);
vfs->CreateRoot("/", &ustar_op); vfs_ctx->CreateRoot("/", &ustar_op);
for (size_t i = 0;; i++) for (size_t i = 0;; i++)
{ {
@ -60,7 +60,7 @@ namespace VirtualFileSystem
if (isempty((char *)header->name)) if (isempty((char *)header->name))
goto NextFileAddress; 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); debug("Added node: %s", node->Name);
if (node == nullptr) if (node == nullptr)
{ {

View File

@ -63,7 +63,7 @@ namespace VirtualFileSystem
} }
public: public:
USTAR(uintptr_t Address, Virtual *vfs); USTAR(uintptr_t Address, Virtual *vfs_ctx);
~USTAR(); ~USTAR();
}; };
} }