]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: add const to array parameters, where possible
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Jan 2020 16:08:25 +0000 (17:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Jan 2020 16:10:28 +0000 (17:10 +0100)
src/core/execute.c

index 2a02cc54dbe0f14da510afcb6aaa2651787e563d..ad5e25e2234d471a822eed4570cedce3749a8933 100644 (file)
@@ -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];