From a333d8aa7ce57dbae0341e2892024ebbba875f72 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Fri, 4 Apr 2025 10:53:40 +0000 Subject: [PATCH] refactor(kernel): change Spawn function parameter type from char* to const char* Signed-off-by: EnderIce2 --- Kernel/exec/spawn.cpp | 2 +- Kernel/include/exec.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/exec/spawn.cpp b/Kernel/exec/spawn.cpp index 7662e0bc..98885985 100644 --- a/Kernel/exec/spawn.cpp +++ b/Kernel/exec/spawn.cpp @@ -30,7 +30,7 @@ using namespace Tasking; namespace Execute { - int Spawn(char *Path, const char **argv, const char **envp, + int Spawn(const char *Path, const char **argv, const char **envp, Tasking::PCB *Parent, bool Fork, Tasking::TaskCompatibility Compatibility, bool Critical) diff --git a/Kernel/include/exec.hpp b/Kernel/include/exec.hpp index 66a0b5fc..be31797b 100644 --- a/Kernel/include/exec.hpp +++ b/Kernel/include/exec.hpp @@ -77,7 +77,7 @@ namespace Execute BinaryType GetBinaryType(FileNode *Path); BinaryType GetBinaryType(std::string Path); - int Spawn(char *Path, const char **argv, const char **envp, + int Spawn(const char *Path, const char **argv, const char **envp, Tasking::PCB *Parent = nullptr, bool Fork = false, Tasking::TaskCompatibility Compatibility = Tasking::Native, bool Critical = false);