summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-13 20:43:02 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-13 20:43:02 +0200
commitc27488016e0e90569260bc513fa95acbad512ff5 (patch)
treecbea6db8a7a9f7add96be5072e4f2053f5a956be /execute.c
parentba8c0bef6bbb3f8cb92e0bf381fbe5a84584506f (diff)
execute: make flags_fds() parameters const
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/execute.c b/execute.c
index 5ac5eefd33..a82d016cbc 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,