From: Lennart Poettering Date: Wed, 15 Jan 2020 16:08:25 +0000 (+0100) Subject: execute: add const to array parameters, where possible X-Git-Tag: v245-rc1~114^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b8d1f6b7757781eb55ac15a1e079dcb7bc6792a;p=thirdparty%2Fsystemd.git execute: add const to array parameters, where possible --- diff --git a/src/core/execute.c b/src/core/execute.c index 2a02cc54dbe..ad5e25e2234 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];