diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-07 10:53:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-08 11:08:03 +0200 |
commit | 5efc7faaea8fc780cf0fc9d0629fc50ea4fbd3b4 (patch) | |
tree | 09a5e108372933a356ce87a7ea7edbe09295d582 /libbuild2/utility.cxx | |
parent | a78a8fcd2506c6ea6046fed32a25f7df3eeca631 (diff) |
Tighten args const-ness in the run*() function family
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r-- | libbuild2/utility.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx index 68f54b9..556c4a3 100644 --- a/libbuild2/utility.cxx +++ b/libbuild2/utility.cxx @@ -215,7 +215,7 @@ namespace build2 process run_start (uint16_t verbosity, const process_env& pe, - const char* args[], + const char* const* args, int in, int out, process::pipe err, @@ -348,7 +348,7 @@ namespace build2 } void - run (context& ctx, const process_env& pe, const char* args[]) + run (context& ctx, const process_env& pe, const char* const* args) { if (ctx.phase == run_phase::load) { @@ -363,7 +363,7 @@ namespace build2 } void - run (diag_buffer& dbuf, const process_env& pe, const char* args[]) + run (diag_buffer& dbuf, const process_env& pe, const char* const* args) { process pr (run_start (pe, args, @@ -378,7 +378,7 @@ namespace build2 run (context& ctx, uint16_t verbosity, const process_env& pe, - const char* args[], + const char* const* args, const function<bool (string&, bool)>& f, bool tr, bool err, @@ -448,7 +448,7 @@ namespace build2 run (diag_buffer& dbuf, uint16_t verbosity, const process_env& pe, - const char* args[], + const char* const* args, const function<bool (string&, bool)>& f, bool tr, bool ignore_exit, |