summaryrefslogtreecommitdiff
path: root/Userland/DynamicLoader
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/DynamicLoader
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Userland/DynamicLoader')
-rw-r--r--Userland/DynamicLoader/main.cpp4
-rw-r--r--Userland/DynamicLoader/misc.cpp2
-rw-r--r--Userland/DynamicLoader/misc.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/Userland/DynamicLoader/main.cpp b/Userland/DynamicLoader/main.cpp
index b6f792b509..872c260622 100644
--- a/Userland/DynamicLoader/main.cpp
+++ b/Userland/DynamicLoader/main.cpp
@@ -42,7 +42,7 @@ static void perform_self_relocations(auxv_t* auxvp)
static void display_help()
{
- const char message[] =
+ char const message[] =
R"(You have invoked `Loader.so'. This is the helper program for programs that
use shared libraries. Special directives embedded in executables tell the
kernel to load this program.
@@ -85,7 +85,7 @@ void _entry(int argc, char** argv, char** envp)
main_program_fd = auxvp->a_un.a_val;
}
if (auxvp->a_type == ELF::AuxiliaryValue::ExecFilename) {
- main_program_name = (const char*)auxvp->a_un.a_ptr;
+ main_program_name = (char const*)auxvp->a_un.a_ptr;
}
if (auxvp->a_type == ELF::AuxiliaryValue::Secure) {
is_secure = auxvp->a_un.a_val == 1;
diff --git a/Userland/DynamicLoader/misc.cpp b/Userland/DynamicLoader/misc.cpp
index 9f3662e4b8..3bd22e2eec 100644
--- a/Userland/DynamicLoader/misc.cpp
+++ b/Userland/DynamicLoader/misc.cpp
@@ -8,7 +8,7 @@
#include <AK/Format.h>
extern "C" {
-const char* __cxa_demangle(const char*, void*, void*, int*)
+char const* __cxa_demangle(char const*, void*, void*, int*)
{
dbgln("WARNING: __cxa_demangle not supported");
return "";
diff --git a/Userland/DynamicLoader/misc.h b/Userland/DynamicLoader/misc.h
index cfa26ef95e..104ebc0de3 100644
--- a/Userland/DynamicLoader/misc.h
+++ b/Userland/DynamicLoader/misc.h
@@ -7,7 +7,7 @@
#pragma once
extern "C" {
-const char* __cxa_demangle(const char*, void*, void*, int*);
+char const* __cxa_demangle(char const*, void*, void*, int*);
extern void* __dso_handle;
}