From: Christophe Jaillet Date: Mon, 25 May 2026 15:51:50 +0000 (+0000) Subject: memchr() takes a char * as a first parameter, and 'buf' is a const char *. X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=37fab2924984eded5391fc84daaf9dc299af522d;p=thirdparty%2Fapache%2Fhttpd.git memchr() takes a char * as a first parameter, and 'buf' is a const char *. This breaks build process at least with gcc 16.1.1 and maintainer-mode enabled. Without maintainer-mode, only a warning is generated. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934594 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/sed1.c b/modules/filters/sed1.c index 047f49ba13..21f6e5ec7e 100644 --- a/modules/filters/sed1.c +++ b/modules/filters/sed1.c @@ -436,7 +436,7 @@ apr_status_t sed_eval_buffer(sed_eval_t *eval, const char *buf, apr_size_t bufsz char *n; apr_size_t llen; - n = memchr(buf, '\n', bufsz); + n = memchr((char *)buf, '\n', bufsz); if (n == NULL) break;