1.1 --- a/libexec/lib/src/stack.cc Thu Feb 16 18:44:41 2023 +0100
1.2 +++ b/libexec/lib/src/stack.cc Thu Feb 16 18:45:23 2023 +0100
1.3 @@ -97,7 +97,7 @@
1.4
1.5 /* Push environment values in reverse order. */
1.6
1.7 -void Stack::push_string(char *s)
1.8 +void Stack::push_string(const char *s)
1.9 {
1.10 char *arg = (char *) _element;
1.11 char *arg_last = arg;
1.12 @@ -112,7 +112,7 @@
1.13
1.14 /* Push environment values in reverse order. */
1.15
1.16 -void Stack::push_env(char *envp[])
1.17 +void Stack::push_env(const char *envp[])
1.18 {
1.19 _env_top = (char *) _element;
1.20 _env_entries = 0;
1.21 @@ -123,7 +123,7 @@
1.22
1.23 /* Push argument values in reverse order. */
1.24
1.25 -void Stack::push_args(int argc, char *argv[])
1.26 +void Stack::push_args(int argc, const char *argv[])
1.27 {
1.28 _arg_top = (char *) _element;
1.29
1.30 @@ -211,7 +211,7 @@
1.31 /* Fill the stack in reverse with an address, returning the size of the
1.32 value. */
1.33
1.34 -offset_t Stack::write_address(char *arg, char **addr, char *s)
1.35 +offset_t Stack::write_address(char *arg, char **addr, const char *s)
1.36 {
1.37 offset_t size = round(strlen(s) + 1, sizeof(l4_umword_t));
1.38
1.39 @@ -222,7 +222,7 @@
1.40 /* Populate stack with environment pointers, employing a pointer ordering
1.41 that is the reverse of the value ordering. */
1.42
1.43 -void Stack::push_envp(char *envp[])
1.44 +void Stack::push_envp(const char *envp[])
1.45 {
1.46 /* Write the terminating element. */
1.47
1.48 @@ -242,7 +242,7 @@
1.49 /* Populate stack with argument pointers and count, employing a pointer
1.50 ordering that is the reverse of the value ordering. */
1.51
1.52 -void Stack::push_argv(int argc, char *argv[])
1.53 +void Stack::push_argv(int argc, const char *argv[])
1.54 {
1.55 /* Write the terminating element. */
1.56
1.57 @@ -280,7 +280,7 @@
1.58
1.59 /* Populate the stack with arguments and initial environment. */
1.60
1.61 -void Stack::populate(int argc, char *argv[], char *envp[])
1.62 +void Stack::populate(int argc, const char *argv[], const char *envp[])
1.63 {
1.64 /* Populate stack with any regions and capabilities. */
1.65