mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
execute: make flags_fds() parameters const
This commit is contained in:
parent
ba8c0bef6b
commit
c27488016e
@ -91,7 +91,7 @@ static int shift_fds(int fds[], unsigned n_fds) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flags_fds(int fds[], unsigned n_fds, bool nonblock) {
|
static int flags_fds(const int fds[], unsigned n_fds, bool nonblock) {
|
||||||
unsigned i;
|
unsigned i;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
@ -667,7 +667,7 @@ static int enforce_user(const ExecContext *context, uid_t uid) {
|
|||||||
|
|
||||||
int exec_spawn(ExecCommand *command,
|
int exec_spawn(ExecCommand *command,
|
||||||
const ExecContext *context,
|
const ExecContext *context,
|
||||||
int *fds, unsigned n_fds,
|
int fds[], unsigned n_fds,
|
||||||
bool apply_permissions,
|
bool apply_permissions,
|
||||||
bool apply_chroot,
|
bool apply_chroot,
|
||||||
bool confirm_spawn,
|
bool confirm_spawn,
|
||||||
|
@ -164,7 +164,7 @@ typedef enum ExitStatus {
|
|||||||
|
|
||||||
int exec_spawn(ExecCommand *command,
|
int exec_spawn(ExecCommand *command,
|
||||||
const ExecContext *context,
|
const ExecContext *context,
|
||||||
int *fds, unsigned n_fds,
|
int fds[], unsigned n_fds,
|
||||||
bool apply_permissions,
|
bool apply_permissions,
|
||||||
bool apply_chroot,
|
bool apply_chroot,
|
||||||
bool confirm_spawn,
|
bool confirm_spawn,
|
||||||
|
Loading…
Reference in New Issue
Block a user