diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-01-15 17:08:25 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-01-15 17:10:28 +0100 |
commit | 5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a (patch) | |
tree | 2bbb4397f001256a5933c03b714c327af11983a2 /src | |
parent | Merge pull request #14579 from keszybz/docs-index (diff) | |
download | systemd-5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a.tar.xz systemd-5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a.zip |
execute: add const to array parameters, where possible
Diffstat (limited to 'src')
-rw-r--r-- | src/core/execute.c | 4 |
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]; |