aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2026-02-15 14:41:20 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2026-02-15 15:15:30 +0100
commitb668e52c906b664b353d5a99cfa3ff36f73b341d (patch)
tree85ab744c5dd15c21633b89a518ff001225c98494 /miscutils
parent9e8f8a196838b63acdbd2c9b48a2a333bc885e8b (diff)
downloadbusybox-w32-b668e52c906b664b353d5a99cfa3ff36f73b341d.tar.gz
busybox-w32-b668e52c906b664b353d5a99cfa3ff36f73b341d.tar.bz2
busybox-w32-b668e52c906b664b353d5a99cfa3ff36f73b341d.zip
*: 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 <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/bc.c2
1 files changed, 1 insertions, 1 deletions
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)
5525 char c = *str++; 5525 char c = *str++;
5526 if (c == '\\') { 5526 if (c == '\\') {
5527 static const char esc[] ALIGN1 = "nabfrt""e\\"; 5527 static const char esc[] ALIGN1 = "nabfrt""e\\";
5528 char *n; 5528 const char *n;
5529 5529
5530 c = *str++; 5530 c = *str++;
5531 n = strchr(esc, c); // note: if c is NUL, n = \0 at end of esc 5531 n = strchr(esc, c); // note: if c is NUL, n = \0 at end of esc