summaryrefslogtreecommitdiff
path: root/Source/Kernel
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel')
-rw-r--r--Source/Kernel/Core/Log.ns.cpp2
-rw-r--r--Source/Kernel/SyscallManager/Ressource.class.h2
-rw-r--r--Source/Kernel/VFS/FileSystem.proto.h1
-rw-r--r--Source/Kernel/common.h8
4 files changed, 7 insertions, 6 deletions
diff --git a/Source/Kernel/Core/Log.ns.cpp b/Source/Kernel/Core/Log.ns.cpp
index fbdb7f2..1727024 100644
--- a/Source/Kernel/Core/Log.ns.cpp
+++ b/Source/Kernel/Core/Log.ns.cpp
@@ -10,7 +10,7 @@ void init(u8int loglevel) {
if (VFS::find("/System") == 0) VFS::createDirectory("/System");
if (VFS::find("/System/Logs") == 0) VFS::createDirectory("/System/Logs");
- if (KL_PANIC <= loglevel) logs[KL_PANIC] = new TextFile("/System/Logs/Panic.log", FM_APPEND);
+ logs[KL_PANIC] = new TextFile("/System/Logs/Panic.log", FM_APPEND);
if (KL_CRITICAL <= loglevel) logs[KL_CRITICAL] = new TextFile("/System/Logs/Critical.log", FM_APPEND);
if (KL_ERROR <= loglevel) logs[KL_ERROR] = new TextFile("/System/Logs/Error.log", FM_APPEND);
if (KL_WARNING <= loglevel) logs[KL_WARNING] = new TextFile("/System/Logs/Warning.log", FM_APPEND);
diff --git a/Source/Kernel/SyscallManager/Ressource.class.h b/Source/Kernel/SyscallManager/Ressource.class.h
index 2ccdcc1..ecd640b 100644
--- a/Source/Kernel/SyscallManager/Ressource.class.h
+++ b/Source/Kernel/SyscallManager/Ressource.class.h
@@ -48,7 +48,7 @@ class Ressource {
protected:
Ressource(u8int type, call_t* callTable = 0);
- ~Ressource();
+ virtual ~Ressource();
//This function's role is to tell the Ressource if it is supposed to be accesible from current user or not
virtual bool accessible() = 0; //This function should be overloaded by all derivated classes
diff --git a/Source/Kernel/VFS/FileSystem.proto.h b/Source/Kernel/VFS/FileSystem.proto.h
index 5aec434..a614c13 100644
--- a/Source/Kernel/VFS/FileSystem.proto.h
+++ b/Source/Kernel/VFS/FileSystem.proto.h
@@ -9,6 +9,7 @@ class DirectoryNode;
//This abstract class describes a filesystem
class FileSystem {
protected:
+ virtual ~FileSystem() {}
bool m_isWritable; //false = read only
DirectoryNode* m_rootNode;
diff --git a/Source/Kernel/common.h b/Source/Kernel/common.h
index 86d76cd..d35ba84 100644
--- a/Source/Kernel/common.h
+++ b/Source/Kernel/common.h
@@ -15,13 +15,13 @@
#include <MemoryManager/Mem.ns.h>
//Standard implemenations of operator new/delete
-inline void* operator new(u32int, void *p) { return p; }
-inline void* operator new[](u32int, void *p) { return p; }
+inline void* operator new(size_t, void *p) { return p; }
+inline void* operator new[](size_t, void *p) { return p; }
inline void operator delete(void*, void*) { }
inline void operator delete[](void*, void*) { }
-inline void* operator new(u32int sz) { return Mem::alloc(sz); }
-inline void* operator new[](u32int sz) { return Mem::alloc(sz); }
+inline void* operator new(size_t sz) { return Mem::alloc(sz); }
+inline void* operator new[](size_t sz) { return Mem::alloc(sz); }
inline void operator delete(void *ptr) { Mem::free(ptr); }
inline void operator delete[](void *ptr) { Mem::free(ptr); }