diff options
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/KMain.cxx | 2 | ||||
| -rw-r--r-- | Source/String.cxx | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/Source/KMain.cxx b/Source/KMain.cxx index 0a614171..8a96aee0 100644 --- a/Source/KMain.cxx +++ b/Source/KMain.cxx @@ -11,7 +11,7 @@ #include <KernelKit/CodeManager.hpp> #include <ArchKit/Arch.hpp> -extern "C" void __KernelMain(hCore::VoidPtr this_image) +extern "C" void Main(hCore::VoidPtr this_image) { MUST_PASS(hCore::initialize_hardware_components()); diff --git a/Source/String.cxx b/Source/String.cxx index 86194812..3ad2a0cd 100644 --- a/Source/String.cxx +++ b/Source/String.cxx @@ -7,7 +7,6 @@ * ======================================================== */ -#include <NewKit/KHeap.hpp> #include <NewKit/String.hpp> #include <NewKit/Utils.hpp> @@ -103,7 +102,6 @@ namespace hCore if (!to_str(result, sizeof(int), i)) { - delete[] ret; return ("-1"); } @@ -211,7 +209,6 @@ namespace hCore if (lhs && rhs && cur < string_length(lhs)) { - SizeT sz_lhs = string_length(lhs); SizeT sz_rhs = string_length(rhs); rt_copy_memory(rhs, lhs + cur, sz_rhs); |
