Fix some constness warnings with glibc-2.43. --- a/support/ab.c +++ b/support/ab.c @@ -2261,7 +2261,7 @@ static int parse_url(const char *url) } #endif - if ((cp = strchr(url, '/')) == NULL) + if ((cp = strchr((char*)url, '/')) == NULL) return 1; h = apr_pstrmemdup(cntxt, url, cp - url); rv = apr_parse_addr_port(&hostname, &scope_id, &port, h, cntxt); @@ -2537,7 +2537,7 @@ int main(int argc, const char * const ar /* * assume proxy-name[:port] */ - if ((p = strchr(opt_arg, ':'))) { + if ((p = strchr((char*)opt_arg, ':'))) { *p = '\0'; p++; proxyport = atoi(p); --- a/support/rotatelogs.c +++ b/support/rotatelogs.c @@ -539,7 +539,7 @@ static void doRotate(rotate_config_t *co */ static const char *get_time_or_size(rotate_config_t *config, const char *arg, int last) { - char *ptr = NULL; + const char *ptr = NULL; /* Byte multiplier */ unsigned int mult = 1; if ((ptr = strchr(arg, 'B')) != NULL) { /* Found KB size */