2.4.x patch: trunk patch works modulo CHANGES
+1: trawick, jorton, jim
- * mod_cache: Fix new const warnings
- (cache_storage.c:581:13: warning: passing argument 1 of 'ap_strrchr' discards 'const' qualifier from pointer target type)
- trunk patch: http://svn.apache.org/r1491564
- 2.4.x patch: trunk patch works
- +1: trawick, jorton, jim
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
identifier = (char **) conf->ignore_session_id->elts;
for (i = 0; i < conf->ignore_session_id->nelts; i++, identifier++) {
int len;
- char *param;
+ const char *param;
len = strlen(*identifier);
/*
* Check that we have a parameter separator in the last segment
* of the path and that the parameter matches our identifier
*/
- if ((param = strrchr(path, ';'))
+ if ((param = ap_strrchr_c(path, ';'))
&& !strncmp(param + 1, *identifier, len)
&& (*(param + len + 1) == '=')
- && !strchr(param + len + 2, '/')) {
+ && !ap_strchr_c(param + len + 2, '/')) {
path = apr_pstrndup(p, path, param - path);
continue;
}
}
}
if (param) {
- char *amp;
+ const char *amp;
if (querystring != param) {
querystring = apr_pstrndup(p, querystring,
querystring = "";
}
- if ((amp = strchr(param + len + 1, '&'))) {
+ if ((amp = ap_strchr_c(param + len + 1, '&'))) {
querystring = apr_pstrcat(p, querystring, amp + 1,
NULL);
}