From b668e52c906b664b353d5a99cfa3ff36f73b341d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 15 Feb 2026 14:41:20 +0100 Subject: *: placate warnings where strchr/strstr returns constant pointer Newer glibc is now smarter and can propagate const-ness from those! function old new delta readtoken1 3111 3108 -3 Signed-off-by: Denys Vlasenko --- miscutils/bc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/bc.c b/miscutils/bc.c index 28bc40c8b..1ef8f418d 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -5525,7 +5525,7 @@ static void xc_program_printString(const char *str) char c = *str++; if (c == '\\') { static const char esc[] ALIGN1 = "nabfrt""e\\"; - char *n; + const char *n; c = *str++; n = strchr(esc, c); // note: if c is NUL, n = \0 at end of esc -- cgit v1.2.3-55-g6feb