X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fvfs%2Fmemfile.c;h=941fcfe28623506a1a937ec9985f1beb82c74d3a;hb=26e66aa0a682e2f1a5d9328b6037b5779310f8f3;hp=2fc38e76846d57157ffff786870015f84db129ac;hpb=8bc40333b1401d7616b225945fee53d972c2f418;p=tpg%2Facess2.git diff --git a/Kernel/vfs/memfile.c b/Kernel/vfs/memfile.c index 2fc38e76..941fcfe2 100644 --- a/Kernel/vfs/memfile.c +++ b/Kernel/vfs/memfile.c @@ -1,10 +1,13 @@ -/* +/* + * Acess 2 + * Virtual File System + * - Memory Pseudo Files */ -#include +#include #include // === PROTOTYPES === -tVFS_Node *VFS_MemFile_Create(tVFS_Node *Unused, char *Path); +tVFS_Node *VFS_MemFile_Create(tVFS_Node *Unused, const char *Path); void VFS_MemFile_Close(tVFS_Node *Node); Uint64 VFS_MemFile_Read(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer); Uint64 VFS_MemFile_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer); @@ -18,13 +21,13 @@ tVFS_Node gVFS_MemRoot = { // === CODE === /** - * \fn tVFS_Node *VFS_MemFile_Create(tVFS_Node *Unused, char *Path) + * \fn tVFS_Node *VFS_MemFile_Create(tVFS_Node *Unused, const char *Path) * \note Treated as finddir by VFS_ParsePath */ -tVFS_Node *VFS_MemFile_Create(tVFS_Node *Unused, char *Path) +tVFS_Node *VFS_MemFile_Create(tVFS_Node *Unused, const char *Path) { Uint base, size; - char *str = Path; + const char *str = Path; tVFS_Node *ret; str++; // Eat '$' @@ -57,8 +60,6 @@ tVFS_Node *VFS_MemFile_Create(tVFS_Node *Unused, char *Path) // Check for NULL byte if(*str != '\0') return NULL; - Log(" VFS_MemFile_Create: base=0x%x, size=0x%x", base, size); - // Allocate and fill node ret = malloc(sizeof(tVFS_Node)); memset(ret, 0, sizeof(tVFS_Node));