diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-22 16:22:56 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-02-22 16:22:56 -0800 |
commit | a8e92639af37ff1e289eb0c3db9589740a630f4a (patch) | |
tree | 5ae5938c9a63c675a0b566ebc9c290af3efb6e25 /postfork.cpp | |
parent | d99c2cb9a7ec4b2292616ccbd851eed10fd4328b (diff) |
Cleanup and simplify null_terminated_array_t and its clients
Diffstat (limited to 'postfork.cpp')
-rw-r--r-- | postfork.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postfork.cpp b/postfork.cpp index a1d1a252..6553104b 100644 --- a/postfork.cpp +++ b/postfork.cpp @@ -528,7 +528,7 @@ bool fork_actions_make_spawn_properties(posix_spawnattr_t *attr, posix_spawn_fil } #endif //FISH_USE_POSIX_SPAWN -void safe_report_exec_error(int err, const char *actual_cmd, char **argv, char **envv) +void safe_report_exec_error(int err, const char *actual_cmd, const char * const *argv, const char *const *envv) { debug_safe(0, "Failed to execute process '%s'. Reason:", actual_cmd); @@ -542,7 +542,7 @@ void safe_report_exec_error(int err, const char *actual_cmd, char **argv, char * long arg_max = -1; size_t sz = 0; - char **p; + const char * const *p; for (p=argv; *p; p++) { sz += strlen(*p)+1; |