aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/utility6
-rw-r--r--build2/utility.cxx4
-rw-r--r--build2/utility.txx2
3 files changed, 6 insertions, 6 deletions
diff --git a/build2/utility b/build2/utility
index a636c01..ee12545 100644
--- a/build2/utility
+++ b/build2/utility
@@ -85,10 +85,10 @@ namespace build2
// in case of an error.
//
process
- start_run (const char* const* args, bool error);
+ start_run (const char* args[], bool error);
bool
- finish_run (const char* const* args, bool error, process&, const string&);
+ finish_run (const char* args[], bool error, process&, const string&);
// Start the process as above and then call the specified function on each
// trimmed line of the output until it returns a non-empty object T (tested
@@ -106,7 +106,7 @@ namespace build2
//
template <typename T>
T
- run (const char* const* args,
+ run (const char* args[],
T (*) (string&),
bool error = true,
bool ignore_exit = false,
diff --git a/build2/utility.cxx b/build2/utility.cxx
index 3eda7e1..8ebfe06 100644
--- a/build2/utility.cxx
+++ b/build2/utility.cxx
@@ -70,7 +70,7 @@ namespace build2
}
process
- start_run (const char* const* args, bool err)
+ start_run (const char* args[], bool err)
{
if (verb >= 3)
print_process (args);
@@ -96,7 +96,7 @@ namespace build2
};
bool
- finish_run (const char* const* args, bool err, process& pr, const string& l)
+ finish_run (const char* args[], bool err, process& pr, const string& l)
try
{
if (pr.wait ())
diff --git a/build2/utility.txx b/build2/utility.txx
index a00f3fb..3e29db6 100644
--- a/build2/utility.txx
+++ b/build2/utility.txx
@@ -6,7 +6,7 @@ namespace build2
{
template <typename T>
T
- run (const char* const* args,
+ run (const char* args[],
T (*f) (string&),
bool err,
bool ignore_exit,