tree-wide: drop de-constifying casts for strv iteration
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 May 2022 10:30:51 +0000 (12:30 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 May 2022 20:47:50 +0000 (22:47 +0200)
commit2034c8b8838c9f42d1dc16fbda23d9bc3a2c6f02
treef9c20df0ff36af4a0edcb6f6ecb42e16f41be116
parent40893cbfd5db8b2213c1f4e8047bef224d2258cc
tree-wide: drop de-constifying casts for strv iteration

When the the iterator variable is declared automatically, it "inherits" the
const/non-const status from the argument. We don't need to cast a const
table to non-const. If we had a programming error and tried to modify the
string, the compiler could now catch this.
src/core/manager.c
src/shared/bootspec.c
src/shared/conf-parser.c
src/test/test-fs-util.c
src/test/test-sysctl-util.c