Files
gentoo/app-admin/apache-tools/files/apache-tools-2.4.67-constness.patch
Holger Hoffstätte 584e292ed8 app-admin/apache-tools: add 2.4.67
Also fixed some constness warnings with glibc-2.43.

Bug: https://bugs.gentoo.org/973625
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/827
Signed-off-by: Sam James <sam@gentoo.org>
2026-05-05 06:07:14 +01:00

34 lines
1.2 KiB
Diff

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 */