aboutsummaryrefslogtreecommitdiff
path: root/coreutils/printf.c
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 /coreutils/printf.c
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 'coreutils/printf.c')
-rw-r--r--coreutils/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c
index 4edcfa9b5..3cd48cfcc 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -354,7 +354,7 @@ static char **print_formatted(char *f, char **argv, int *conv_err)
354 /* Add "ll" if integer modifier, then print */ 354 /* Add "ll" if integer modifier, then print */
355 { 355 {
356 static const char format_chars[] ALIGN1 = "diouxXfeEgGcs"; 356 static const char format_chars[] ALIGN1 = "diouxXfeEgGcs";
357 char *p = strchr(format_chars, *f); 357 char *p = (char*)strchr(format_chars, *f);
358 /* needed - try "printf %" without it */ 358 /* needed - try "printf %" without it */
359 if (p == NULL || *f == '\0') { 359 if (p == NULL || *f == '\0') {
360 bb_error_msg("%s: invalid format", direc_start); 360 bb_error_msg("%s: invalid format", direc_start);