diff options
author | MacDue <macdue@dueutil.tech> | 2023-02-04 15:43:38 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-05 16:40:51 +0100 |
commit | f4236e61bf877194df72059cb64be3f49cfebe53 (patch) | |
tree | 40014667bf499386d7e6e4e27b04a62b20b23362 /Userland | |
parent | 1668d0da2718500519575cb8eddf9754866dea3a (diff) | |
download | serenity-f4236e61bf877194df72059cb64be3f49cfebe53.zip |
LibCore: Add const qualifier to exec() argument spans
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibCore/System.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibCore/System.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index 512a4db08f..e266eceaba 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -1113,7 +1113,7 @@ ErrorOr<u64> create_jail(StringView jail_name) } #endif -ErrorOr<void> exec(StringView filename, Span<StringView> arguments, SearchInPath search_in_path, Optional<Span<StringView>> environment) +ErrorOr<void> exec(StringView filename, Span<StringView const> arguments, SearchInPath search_in_path, Optional<Span<StringView const>> environment) { #ifdef AK_OS_SERENITY Syscall::SC_execve_params params; diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index 8520d278fc..8791efc082 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -178,7 +178,7 @@ enum class SearchInPath { ErrorOr<void> exec_command(Vector<StringView>& command, bool preserve_env); #endif -ErrorOr<void> exec(StringView filename, Span<StringView> arguments, SearchInPath, Optional<Span<StringView>> environment = {}); +ErrorOr<void> exec(StringView filename, Span<StringView const> arguments, SearchInPath, Optional<Span<StringView const>> environment = {}); #ifdef AK_OS_SERENITY ErrorOr<void> join_jail(u64 jail_index); |