svn commit: r1934594 - httpd/httpd/trunk/modules/filters
| Newsgroups | gmane.comp.apache.cvs |
|---|---|
| Message-ID | <177972431077.3351489.16436263975388421198@svn03-he-fi> |
Author: jailletc36
Date: Mon May 25 15:51:50 2026
New Revision: 1934594
Log:
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.
Modified:
httpd/httpd/trunk/modules/filters/sed1.c
Modified: httpd/httpd/trunk/modules/filters/sed1.c
==============================================================================
--- httpd/httpd/trunk/modules/filters/sed1.c Mon May 25 15:26:16 2026 (r1934593)
+++ httpd/httpd/trunk/modules/filters/sed1.c Mon May 25 15:51:50 2026 (r1934594)
@@ -436,7 +436,7 @@ apr_status_t sed_eval_buffer(sed_eval_t
char *n;
apr_size_t llen;
- n = memchr(buf, '\n', bufsz);
+ n = memchr((char *)buf, '\n', bufsz);
if (n == NULL)
break;