httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: svn commit: r1100443 - /httpd/httpd/trunk/server/mpm/winnt/service.c
Date Sat, 07 May 2011 14:32:14 GMT
On Sat, May 7, 2011 at 12:15 AM,  <wrowe@apache.org> wrote:
> Author: wrowe
> Date: Sat May  7 04:15:01 2011
> New Revision: 1100443
>
> URL: http://svn.apache.org/viewvc?rev=1100443&view=rev
> Log:
> Not possible; you don't declare a variable const and then
> maniuplate it.
>
> Modified:
>    httpd/httpd/trunk/server/mpm/winnt/service.c
>
> Modified: httpd/httpd/trunk/server/mpm/winnt/service.c
> URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/winnt/service.c?rev=1100443&r1=1100442&r2=1100443&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/server/mpm/winnt/service.c (original)
> +++ httpd/httpd/trunk/server/mpm/winnt/service.c Sat May  7 04:15:01 2011
> @@ -750,7 +750,7 @@ apr_status_t mpm_service_start(apr_pool_
>                                const char * const * argv)
>  {
>     apr_status_t rv;
> -    const CHAR **start_argv;
> +    CHAR **start_argv;

That const was for what start_argv pointed to indirectly, to prevent
start_argv from being used to mangle it (start_argv[0][0] = '!').

Of course the end goal was to shut up the compiler about what
StartService() wanted as the third arg.  I'll look for a solution that
makes both compilers happy.

Mime
View raw message