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 /printutils | |
| 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 'printutils')
| -rw-r--r-- | printutils/lpr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/printutils/lpr.c b/printutils/lpr.c index 25b0f7235..464208c65 100644 --- a/printutils/lpr.c +++ b/printutils/lpr.c | |||
| @@ -122,7 +122,7 @@ int lpqr_main(int argc UNUSED_PARAM, char **argv) | |||
| 122 | 122 | ||
| 123 | { | 123 | { |
| 124 | // queue name is to the left of '@' | 124 | // queue name is to the left of '@' |
| 125 | char *s = strchr(queue, '@'); | 125 | char *s = (char *)strchr(queue, '@'); |
| 126 | if (s) { | 126 | if (s) { |
| 127 | // server name is to the right of '@' | 127 | // server name is to the right of '@' |
| 128 | *s = '\0'; | 128 | *s = '\0'; |
