mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
execute: add const to array parameters, where possible
This commit is contained in:
parent
4a9a2a36b0
commit
5b8d1f6b77
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user