summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-01-15 17:08:25 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-15 17:10:28 +0100
commit5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a (patch)
tree2bbb4397f001256a5933c03b714c327af11983a2 /src
parentMerge pull request #14579 from keszybz/docs-index (diff)
downloadsystemd-5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a.tar.xz
systemd-5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a.zip
execute: add const to array parameters, where possible
Diffstat (limited to 'src')
-rw-r--r--src/core/execute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index 2a02cc54db..ad5e25e223 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -1125,7 +1125,7 @@ static int setup_pam(
gid_t gid,
const char *tty,
char ***env,
- int fds[], size_t n_fds) {
+ const int fds[], size_t n_fds) {
#if HAVE_PAM
@@ -2803,7 +2803,7 @@ static int close_remaining_fds(
int user_lookup_fd,
int socket_fd,
int exec_fd,
- int *fds, size_t n_fds) {
+ const int *fds, size_t n_fds) {
size_t n_dont_close = 0;
int dont_close[n_fds + 12];