From bjh@locus.apache.org Sun Nov 26 03:43:52 2000 Return-Path: Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 47698 invoked by uid 1095); 26 Nov 2000 03:43:52 -0000 Date: 26 Nov 2000 03:43:52 -0000 Message-ID: <20001126034352.47697.qmail@locus.apache.org> From: bjh@locus.apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/threadproc/os2 proc.c bjh 00/11/25 19:43:52 Modified: threadproc/os2 proc.c Log: OS/2: const'ifying the args to apr_create_process() has a ripple effect.... Revision Changes Path 1.35 +4 -4 apr/threadproc/os2/proc.c Index: proc.c =================================================================== RCS file: /home/cvs/apr/threadproc/os2/proc.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- proc.c 2000/11/26 02:03:11 1.34 +++ proc.c 2000/11/26 03:43:51 1.35 @@ -253,7 +253,7 @@ /* 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 @@ { 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 @@ 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 @@ cmdline_pos = cmdline + strlen(cmdline); for (i=1; i\" ")) a = apr_pstrcat(cont, "\"", double_quotes(cont, a), "\"", NULL);