You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2017/03/09 09:48:24 UTC
svn commit: r1786120 - in /httpd/httpd/trunk: include/http_config.h
server/config.c server/core.c
Author: jorton
Date: Thu Mar 9 09:48:24 2017
New Revision: 1786120
URL: http://svn.apache.org/viewvc?rev=1786120&view=rev
Log:
* server/config.c, include/http_config.h (ap_build_cont_config,
ap_soak_end_container): Constify directive arguments - existing
callers pass string literals.
* server/core.c (start_cond_section): Remove casts needed for above.
Modified:
httpd/httpd/trunk/include/http_config.h
httpd/httpd/trunk/server/config.c
httpd/httpd/trunk/server/core.c
Modified: httpd/httpd/trunk/include/http_config.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/http_config.h?rev=1786120&r1=1786119&r2=1786120&view=diff
==============================================================================
--- httpd/httpd/trunk/include/http_config.h (original)
+++ httpd/httpd/trunk/include/http_config.h Thu Mar 9 09:48:24 2017
@@ -858,7 +858,7 @@ AP_DECLARE(const char *) ap_pcfg_strerro
* @note If cmd->pool == cmd->temp_pool, ap_soak_end_container() will assume
* .htaccess context and use a lower maximum line length.
*/
-AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive);
+AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, const char *directive);
/**
* Read all data between the current <foo> and the matching </foo> and build
@@ -878,7 +878,7 @@ AP_DECLARE(const char *) ap_build_cont_c
cmd_parms *parms,
ap_directive_t **current,
ap_directive_t **curr_parent,
- char *orig_directive);
+ const char *orig_directive);
/**
* Build a config tree from a config file
Modified: httpd/httpd/trunk/server/config.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/config.c?rev=1786120&r1=1786119&r2=1786120&view=diff
==============================================================================
--- httpd/httpd/trunk/server/config.c (original)
+++ httpd/httpd/trunk/server/config.c Thu Mar 9 09:48:24 2017
@@ -1242,7 +1242,7 @@ AP_DECLARE(const char *) ap_build_cont_c
cmd_parms *parms,
ap_directive_t **current,
ap_directive_t **curr_parent,
- char *orig_directive)
+ const char *orig_directive)
{
char *bracket;
const char *retval;
@@ -1615,7 +1615,7 @@ AP_DECLARE(char *) ap_runtime_dir_relati
}
-AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive)
+AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, const char *directive)
{
struct ap_varbuf vb;
const char *args;
Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1786120&r1=1786119&r2=1786120&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Thu Mar 9 09:48:24 2017
@@ -2802,13 +2802,13 @@ static const char *start_cond_section(cm
const char *retval;
retval = ap_build_cont_config(cmd->pool, cmd->temp_pool, cmd,
- ¤t, &parent, (char *)cmd->cmd->name);
+ ¤t, &parent, cmd->cmd->name);
*(ap_directive_t **)mconfig = current;
return retval;
}
else {
*(ap_directive_t **)mconfig = NULL;
- return ap_soak_end_container(cmd, (char *)cmd->cmd->name);
+ return ap_soak_end_container(cmd, cmd->cmd->name);
}
}