From: Lennart Poettering Date: Tue, 13 Apr 2010 18:43:02 +0000 (+0200) Subject: execute: make flags_fds() parameters const X-Git-Tag: v1~516 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c27488016e0e90569260bc513fa95acbad512ff5 execute: make flags_fds() parameters const --- diff --git a/execute.c b/execute.c index 5ac5eefd3..a82d016cb 100644 --- a/execute.c +++ b/execute.c @@ -91,7 +91,7 @@ static int shift_fds(int fds[], unsigned n_fds) { 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; int r; @@ -667,7 +667,7 @@ static int enforce_user(const ExecContext *context, uid_t uid) { int exec_spawn(ExecCommand *command, const ExecContext *context, - int *fds, unsigned n_fds, + int fds[], unsigned n_fds, bool apply_permissions, bool apply_chroot, bool confirm_spawn, diff --git a/execute.h b/execute.h index d2ac4a82e..0ed3ecd78 100644 --- a/execute.h +++ b/execute.h @@ -164,7 +164,7 @@ typedef enum ExitStatus { int exec_spawn(ExecCommand *command, const ExecContext *context, - int *fds, unsigned n_fds, + int fds[], unsigned n_fds, bool apply_permissions, bool apply_chroot, bool confirm_spawn,