mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
This patch changes the apr_table_elts macro so that it provides
access to the internals of an apr_table_t via a const pointer instead of the current non-const pointer. Submitted by: Brian Pane <BPane@pacbell.net> Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -310,8 +310,8 @@ void ap_process_request(request_rec *r)
|
||||
|
||||
static apr_table_t *rename_original_env(apr_pool_t *p, apr_table_t *t)
|
||||
{
|
||||
apr_array_header_t *env_arr = apr_table_elts(t);
|
||||
apr_table_entry_t *elts = (apr_table_entry_t *) env_arr->elts;
|
||||
const apr_array_header_t *env_arr = apr_table_elts(t);
|
||||
const apr_table_entry_t *elts = (const apr_table_entry_t *) env_arr->elts;
|
||||
apr_table_t *new = apr_table_make(p, env_arr->nalloc);
|
||||
int i;
|
||||
|
||||
|
Reference in New Issue
Block a user