Kernel - Slight reworks to timer code
[tpg/acess2.git] / Kernel / vfs / main.c
index cb798c1..5ff0e7c 100644 (file)
@@ -4,9 +4,10 @@
  */
 #include <acess.h>
 #include <fs_sysfs.h>
-#include "vfs.h"
-#include "vfs_int.h"
-#include "vfs_ext.h"
+#include <threads.h>
+#include <vfs.h>
+#include <vfs_int.h>
+#include <vfs_ext.h>
 
 // === IMPORTS ===
 extern tVFS_Driver     gRootFS_Info;
@@ -60,7 +61,7 @@ int VFS_Init(void)
        VFS_Mount("dev", "/Devices", "devfs", "");
                
        Log_Debug("VFS", "Setting max files");
-       CFGINT(CFG_VFS_MAXFILES) = 32;
+       *Threads_GetMaxFD() = 32;
        return 0;
 }
 
@@ -81,7 +82,7 @@ char *VFS_GetTruePath(const char *Path)
        //Log(" VFS_GetTruePath: node=%p, ret='%s'", node, ret);
        
        if(!node)       return NULL;
-       if(node->Close) node->Close(node);
+       if(node->Type->Close)   node->Type->Close(node);
        
        return ret;
 }

UCC git Repository :: git.ucc.asn.au