From 6ea179f5c53c40c83d3cc023ad1e3ea36efaeed5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Sep 2015 11:22:23 +0200 Subject: Cosmetic changes --- butl/process | 8 ++++---- butl/process.cxx | 5 +++-- butl/process.ixx | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) (limited to 'butl') 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:: -- cgit v1.1