From 5efc7faaea8fc780cf0fc9d0629fc50ea4fbd3b4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Nov 2022 10:53:01 +0200 Subject: Tighten args const-ness in the run*() function family --- libbuild2/utility.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libbuild2/utility.cxx') 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& 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& f, bool tr, bool ignore_exit, -- cgit v1.1