You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by po...@apache.org on 2010/02/16 23:00:14 UTC
svn commit: r910717 - /httpd/httpd/trunk/server/config.c
Author: poirier
Date: Tue Feb 16 22:00:13 2010
New Revision: 910717
URL: http://svn.apache.org/viewvc?rev=910717&view=rev
Log:
More correct fix for compile warning about discarding constness
of fname.
Modified:
httpd/httpd/trunk/server/config.c
Modified: httpd/httpd/trunk/server/config.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/config.c?rev=910717&r1=910716&r2=910717&view=diff
==============================================================================
--- httpd/httpd/trunk/server/config.c (original)
+++ httpd/httpd/trunk/server/config.c Tue Feb 16 22:00:13 2010
@@ -1661,7 +1661,7 @@
apr_pool_t *ptemp,
unsigned depth)
{
- char *rest;
+ const char *rest;
apr_status_t rv;
apr_dir_t *dirp;
apr_finfo_t dirent;
@@ -1670,7 +1670,7 @@
int current;
/* find the first part of the filename */
- rest = ap_strchr((char*)fname, '/');
+ rest = ap_strchr_c(fname, '/');
if (rest) {
fname = apr_pstrndup(ptemp, fname, rest - fname);
rest++;