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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-05-08 22:47:50 +02:00
parent 40893cbfd5
commit 2034c8b883
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ static int config_parse_many_files(
}
/* First read the first found main config file. */
STRV_FOREACH(fn, (char**) conf_files) {
STRV_FOREACH(fn, conf_files) {
r = config_parse(NULL, *fn, NULL, sections, lookup, table, flags, userdata, &st);
if (r < 0)
return r;