diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-26 03:43:51 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2000-11-26 03:43:51 +0000 |
commit | 08b6111b12f9fd898769544992cc4fe99dce111d (patch) | |
tree | fe4190b1f4e634d7c1a27ba7ce6a413ef8819e1a /threadproc | |
parent | 57397c181937025c21b96f0adb5030e0363b410c (diff) | |
download | libapr-08b6111b12f9fd898769544992cc4fe99dce111d.tar.gz |
OS/2: const'ifying the args to apr_create_process() has a ripple effect....
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60797 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r-- | threadproc/os2/proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c index 12d214d93..8bc3fec50 100644 --- a/threadproc/os2/proc.c +++ b/threadproc/os2/proc.c @@ -253,7 +253,7 @@ apr_status_t apr_fork(apr_proc_t *proc, apr_pool_t *cont) /* quotes in the string are doubled up. * Used to escape quotes in args passed to OS/2's cmd.exe */ -static char *double_quotes(apr_pool_t *cntxt, char *str) +static char *double_quotes(apr_pool_t *cntxt, const char *str) { int num_quotes = 0; int len = 0; @@ -285,7 +285,7 @@ apr_status_t apr_create_process(apr_proc_t *proc, const char *progname, { int i, arg, numargs, cmdlen; apr_status_t status; - char **newargs; + const char **newargs; char savedir[300]; HFILE save_in, save_out, save_err, dup; int criticalsection = FALSE; @@ -386,7 +386,7 @@ apr_status_t apr_create_process(apr_proc_t *proc, const char *progname, i++; } - newargs = (char **)apr_palloc(cont, sizeof (char *) * (i + 4)); + newargs = (const char **)apr_palloc(cont, sizeof (char *) * (i + 4)); numargs = 0; if (interpreter[0]) @@ -416,7 +416,7 @@ apr_status_t apr_create_process(apr_proc_t *proc, const char *progname, cmdline_pos = cmdline + strlen(cmdline); for (i=1; i<numargs; i++) { - char *a = newargs[i]; + const char *a = newargs[i]; if (strpbrk(a, "&|<>\" ")) a = apr_pstrcat(cont, "\"", double_quotes(cont, a), "\"", NULL); |