aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-10 11:22:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-10 11:22:23 +0200
commit6ea179f5c53c40c83d3cc023ad1e3ea36efaeed5 (patch)
tree601b8d094ba33d70cfabf67888adf48ab5309e65
parent43c591d58e3a2c77185f2f62348dc3f049764819 (diff)
Cosmetic changes
-rw-r--r--butl/process8
-rw-r--r--butl/process.cxx5
-rw-r--r--butl/process.ixx4
3 files changed, 9 insertions, 8 deletions
diff --git a/butl/process b/butl/process
index 534ad88..bb77684 100644
--- a/butl/process
+++ b/butl/process
@@ -47,7 +47,7 @@ namespace butl
// exceptions (e.g., if exec() failed) can be thrown in the child
// version of us.
//
- process (char const* args[], int in = 0, int out = 1, int err = 2);
+ process (char const* const args[], int in = 0, int out = 1, int err = 2);
// The "piping" constructor, for example:
//
@@ -57,13 +57,13 @@ namespace butl
// rhs.wait (); // Wait for last first.
// lhs.wait ();
//
- process (char const* args[], process& in, int out = 1, int err = 2);
+ process (char const* const args[], process& in, int out = 1, int err = 2);
// Versions of the above constructors that allow us to change the
// current working directory of the child process.
//
- process (const char* cwd, char const*[], int = 0, int = 1, int = 2);
- process (const char* cwd, char const*[], process& in, int = 1, int = 2);
+ process (const char* cwd, char const* const[], int = 0, int = 1, int = 2);
+ process (const char* cwd, char const* const[], process&, int = 1, int = 2);
// Wait for the process to terminate. Return true if the process
// terminated normally and with the zero exit status. Throw
diff --git a/butl/process.cxx b/butl/process.cxx
index 194ea4e..3556fd9 100644
--- a/butl/process.cxx
+++ b/butl/process.cxx
@@ -25,7 +25,7 @@ namespace butl
#ifndef _WIN32
process::
- process (const char* cwd, char const* args[], int in, int out, int err)
+ process (const char* cwd, char const* const args[], int in, int out, int err)
{
int out_fd[2] = {in, 0};
int in_ofd[2] = {0, out};
@@ -98,7 +98,8 @@ namespace butl
}
process::
- process (const char* cwd, char const* args[], process& in, int out, int err)
+ process (const char* cwd, char const* const args[],
+ process& in, int out, int err)
: process (cwd, args, in.in_ofd, out, err)
{
assert (in.in_ofd != -1); // Should be a pipe.
diff --git a/butl/process.ixx b/butl/process.ixx
index a0948e1..a049764 100644
--- a/butl/process.ixx
+++ b/butl/process.ixx
@@ -5,11 +5,11 @@
namespace butl
{
inline process::
- process (char const* args[], int in, int out, int err)
+ process (char const* const args[], int in, int out, int err)
: process (nullptr, args, in, out, err) {}
inline process::
- process (char const* args[], process& in, int out, int err)
+ process (char const* const args[], process& in, int out, int err)
: process (nullptr, args, in, out, err) {}
inline process::