You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by rb...@covalent.net on 2000/06/24 20:53:28 UTC

The constification work.

There is one major problem with the current strchr work that has been
done.  Because Linux uses strchr inside strstr (at least I am assuming
that is what is happening), we are getting three warnings on Linux when
--with-maintainer-mode is enabled.  The warnings are:

http_protocol.c: In function `ap_meets_conditions':
http_protocol.c:613: warning: passing arg 1 of `ap_strchr' discards
qualifiers from pointer target type
http_protocol.c: In function `use_range_x':
http_protocol.c:1634: warning: passing arg 1 of `ap_strchr' discards
qualifiers from pointer target type
mod_autoindex.c: In function `find_desc':
mod_autoindex.c:821: warning: passing arg 1 of `ap_strchr' discards
qualifiers from pointer target type

If you look at those lines of code, we are actuall calling strstr.  The
only way I can really see to fix this, is to add strstr to the functions
we redefine when using maintainer-mode.  Can anybody else come up with
another way to fix this?  If not, I'll submit a patch later today.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------