]> err.no Git - systemd/commitdiff
execute: make flags_fds() parameters const
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 18:43:02 +0000 (20:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 18:43:02 +0000 (20:43 +0200)
execute.c
execute.h

index 5ac5eefd33150f2c16cd172d25ad65963ae16592..a82d016cbcaed28a05d7d804b0e077a87219d360 100644 (file)
--- 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,
index d2ac4a82e006cbc1cabab6d57f86c5bf375d6ac9..0ed3ecd7809e379abe1818526535e02e3e8348c8 100644 (file)
--- 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,