summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/apr_thread_proc.h2
-rw-r--r--threadproc/unix/proc.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/include/apr_thread_proc.h b/include/apr_thread_proc.h
index c35055078..d40cfb117 100644
--- a/include/apr_thread_proc.h
+++ b/include/apr_thread_proc.h
@@ -378,7 +378,7 @@ apr_status_t apr_fork(apr_proc_t *proc, apr_pool_t *cont);
* @param cont The pool to use.
*/
apr_status_t apr_create_process(apr_proc_t *new_proc, const char *progname,
- char *const args[], char **env,
+ char *const *args, char **env,
apr_procattr_t *attr, apr_pool_t *cont);
/**
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c
index 5d21eeb02..b97abc80a 100644
--- a/threadproc/unix/proc.c
+++ b/threadproc/unix/proc.c
@@ -271,12 +271,11 @@ static apr_status_t limit_proc(apr_procattr_t *attr)
}
apr_status_t apr_create_process(apr_proc_t *new, const char *progname,
- char *const args[], char **env,
+ char *const *args, char **env,
apr_procattr_t *attr, apr_pool_t *cont)
{
int i;
- typedef const char *my_stupid_string;
- my_stupid_string *newargs;
+ const char **newargs;
new->in = attr->parent_in;
new->err = attr->parent_err;
@@ -323,7 +322,7 @@ apr_status_t apr_create_process(apr_proc_t *new, const char *progname,
i++;
}
newargs =
- (my_stupid_string *) apr_palloc(cont, sizeof (char *) * (i + 3));
+ (const char **) apr_palloc(cont, sizeof (char *) * (i + 3));
newargs[0] = SHELL_PATH;
newargs[1] = "-c";
i = 0;