diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-15 14:41:20 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-15 15:15:30 +0100 |
| commit | b668e52c906b664b353d5a99cfa3ff36f73b341d (patch) | |
| tree | 85ab744c5dd15c21633b89a518ff001225c98494 /miscutils | |
| parent | 9e8f8a196838b63acdbd2c9b48a2a333bc885e8b (diff) | |
| download | busybox-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.c | 2 |
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 |
