httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: ap_create_lock(), ap_child_init_lock() and [const] char *fname
Date Thu, 13 Apr 2000 22:57:47 GMT
On Thu, 13 Apr 2000, Jeff Trawick wrote:
> This seems like a dumb question but I'm not too shy...
> 
> Does anyone have a desire *not* to add const to the fname parm of
> these functions?  It looks pretty obvious to me that it can/should be
> const.
> 
> There is an easier way to get rid of a couple of warnings in
> mod_rewrite, but this appropriate change will do the trick too.

+1

Add const everywhere it can be applied. I found on a couple occasions that
I had problem with const globals that I couldn't pass into a function. As
a result, I had to cast or un-const the globals (thereby increasing the
runtime data segment).

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/


Mime
View raw message