ap_soak_end_container): Constify directive arguments - existing
callers pass string literals.
* server/core.c (start_cond_section): Remove casts needed for above.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1786120 13f79535-47bb-0310-9956-
ffa450edef68
* @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
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
cmd_parms *parms,
ap_directive_t **current,
ap_directive_t **curr_parent,
- char *orig_directive)
+ const char *orig_directive)
{
char *bracket;
const char *retval;
}
-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;
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);
}
}